Skip to content

module 'tensorflow_datasets.core.features' has no attribute 'text' #2647

Description

@lopeselio

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=2
13)

AttributeError: module 'tensorflow_datasets.core.features' has no attribute 'text'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions