You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my code
#BERT Augmentator
TOPK=20 #default=100
ACT = 'insert' #"substitute"
aug_bert = naw.ContextualWordEmbsAug(
model_path='bert-base-multilingual-uncased',
#device='cuda',
action=ACT, top_k=TOPK)
print("Original:")
print(text)
print("Augmented Text:")
for ii in range(5):
augmented_text = aug_bert.augment(text)
print(augmented_text)
please let me know how can i fixed this issue.
transformer=4.0.1
pytorch=1.7.0+cu101
nlpaug=1.1.0
The text was updated successfully, but these errors were encountered:
my code
#BERT Augmentator
TOPK=20 #default=100
ACT = 'insert' #"substitute"
aug_bert = naw.ContextualWordEmbsAug(
model_path='bert-base-multilingual-uncased',
#device='cuda',
action=ACT, top_k=TOPK)
print("Original:")
print(text)
print("Augmented Text:")
for ii in range(5):
augmented_text = aug_bert.augment(text)
print(augmented_text)
please let me know how can i fixed this issue.
transformer=4.0.1
pytorch=1.7.0+cu101
nlpaug=1.1.0
The text was updated successfully, but these errors were encountered: