-
Notifications
You must be signed in to change notification settings - Fork 248
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
compute_word_piece_vocabulary #2034
Comments
I suspect there's an issue with your import tensorflow
import tensorflow_text
print(tensorflow.__version__)
print(tensorflow_text.__version__) Lines 4-11 are to allow In your case, it's most likely an issue with your |
There is a valid bug here though. For other library symbols that need tensorflow text we print a helpful error message if the library is missing or otherwise failing to import. We are missing that for Thanks |
Oh I see now, thanks for clarifying! But that error message would be helpful! |
Describe the bug
because
compute_word_piece_vocabulary
function is not importing TensorFlow correctly (tf = None
)(refer to source code lines 4-11 and 117)To Reproduce
Code from https://keras.io/examples/nlp/fnet_classification_with_keras_hub/
Expected behavior
Function executes without error.
Additional context
Tensorflow version 2.17.1
KerasHub version 0.18.1
Maybe remove lines 4-11 in source?
The text was updated successfully, but these errors were encountered: