-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Contextual Word Embeddings Augmenter (BERT) error #161
Comments
May you share a version of python, transformer and nlpaug? |
Hi, Python 3.6.9 |
how about PyTorch version? Suggest to install 1.6 version |
Getting the same error for: Code Snippet:
Error trace:
|
If it helps, doing this in the same notebook works:
Not sure what the underlying problem could be. |
@narayanacharya6 |
Probably something off with Google Colab. I tried to run it locally on my machine and it works just fine. |
Hi,
I am getting this error
NameError: name 'AutoTokenizer' is not defined
when trying this code
Augment French by BERT
aug = naw.ContextualWordEmbsAug(model_path='bert-base-multilingual-uncased', aug_p=0.1)
text = "Bonjour, J'aimerais une attestation de l'employeur certifiant que je suis en CDI."
augmented_text = aug.augment(text)
print("Original:")
print(text)
print("Augmented Text:")
print(augmented_text)
I installed transformers and imported AutoTokenizer
but I am still getting the same error
Any ideas plz
thank u
The text was updated successfully, but these errors were encountered: