tokenizer_en = tfds.features.text.SubwordTextEncoder.build_from_corpus( corpus_en, target_vocab_size=2**13) #Reducing the number of words if our dataset contains about 200,000 unique words, we have reduced it to an assumed 2^13 words(distinct) tokenizer_fr = tfds.features.text.SubwordTextEncoder.build_from_corpus( corpus_fr, target_vocab_size=2**13)
facing this error:
AttributeError Traceback (most recent call last)
in ()
1 # tokenizer_en = tfds.features.text.SubwordTextEncoder.build_from_corpus(
2 # corpus_en, target_vocab_size=213) #Reducing the number of words if our dataset contains about 200,000 unique words, we have reduced it to an assumed 2^13 words(distinct)
----> 3 tokenizer_fr = tfds.features.text.SubwordTextEncoder.build_from_corpus(
4 corpus_fr, target_vocab_size=213)
AttributeError: module 'tensorflow_datasets.core.features' has no attribute 'text'
tokenizer_en = tfds.features.text.SubwordTextEncoder.build_from_corpus( corpus_en, target_vocab_size=2**13) #Reducing the number of words if our dataset contains about 200,000 unique words, we have reduced it to an assumed 2^13 words(distinct) tokenizer_fr = tfds.features.text.SubwordTextEncoder.build_from_corpus( corpus_fr, target_vocab_size=2**13)facing this error:
AttributeError Traceback (most recent call last)
in ()
1 # tokenizer_en = tfds.features.text.SubwordTextEncoder.build_from_corpus(
2 # corpus_en, target_vocab_size=213) #Reducing the number of words if our dataset contains about 200,000 unique words, we have reduced it to an assumed 2^13 words(distinct)
----> 3 tokenizer_fr = tfds.features.text.SubwordTextEncoder.build_from_corpus(
4 corpus_fr, target_vocab_size=213)
AttributeError: module 'tensorflow_datasets.core.features' has no attribute 'text'