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

Where is keras_tokenizer.json supposed to come from for clinc_intent.py? #593

Open
jayargo opened this issue Oct 28, 2021 · 0 comments
Open

Comments

@jayargo
Copy link

jayargo commented Oct 28, 2021

Hi There,

I'm trying to do a simple smoke test of uncertainty-baselines and thought I'd use baselines/clinc_intent/deterministic.py . However, I'm not entirely sure I understand how to run this example. In particular where is keras_tokenizer.json supposed to come from?

Here's what I've tried:
pip install --upgrade pip setuptools
pip install --editable .[tensorflow,models,datasets]

tfds build --data_dir tensorflow_datasets clinc_oos

python baselines/clinc_intent/deterministic.py
--data_dir=tensorflow_datasets/clinc_oos
--bert_dir=models/uncased_L-12_H-768_A-12
--output_dir=/tmp/model
--use_gpu=True
--num_cores=1

Which generates this error:
File "/mnt/shared_ad2_mt1/jpeck/src/uncertainty-baselines/venv/lib64/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 80, in _preread_check
compat.path_to_str(self.__name), 1024 * 512)
tensorflow.python.framework.errors_impl.NotFoundError: tensorflow_datasets/clinc_oos/keras_tokenizer.json; No such file or directory

@jayargo jayargo changed the title Where is keras_tokenizer.json supposed to come from for clint_intent.py? Where is keras_tokenizer.json supposed to come from for clinc_intent.py? Oct 28, 2021
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