Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tfds.deprecated module removed from TensorFlow Datasets? #15

Open
agb253 opened this issue Apr 24, 2023 · 0 comments
Open

tfds.deprecated module removed from TensorFlow Datasets? #15

agb253 opened this issue Apr 24, 2023 · 0 comments

Comments

@agb253
Copy link

agb253 commented Apr 24, 2023

It looks like the tfds.deprecated module has been removed from the TensorFlow Datasets. I get this error.
Shuffling...
Loading tokenizers...
No tokenizers has been created yet, creating new tokenizers...
Traceback (most recent call last):
File "/home/adam/transformer-nmt-chatbot/main.py", line 81, in init
self.inputs_tokenizer, self.outputs_tokenizer = load_tokenizers(
File "/home/adam/transformer-nmt-chatbot/utils.py", line 57, in load_tokenizers
inputs_tokenizer = tfds.deprecated.text.SubwordTextEncoder.load_from_file(inputs_savepath)
AttributeError: module 'tensorflow_datasets' has no attribute 'deprecated'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/adam/transformer-nmt-chatbot/main.py", line 257, in
chatbot = Chatbot(CONFIG_PATH)
File "/home/adam/transformer-nmt-chatbot/main.py", line 85, in init
self.inputs_tokenizer, self.outputs_tokenizer = create_tokenizers(
File "/home/adam/transformer-nmt-chatbot/utils.py", line 44, in create_tokenizers
inputs_tokenizer = tfds.deprecated.text.SubwordTextEncoder.build_from_corpus(
AttributeError: module 'tensorflow_datasets' has no attribute 'deprecated'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant