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
This issue is related to #175 , but occurs when action= insert instead 'substitute'
To reproduce error,
text = 'It can be the first word of sentence which does not come with space.'
aug = naw.ContextualWordEmbsAug(
model_path='bert-base-multilingual-cased', action="insert", top_p=0.9, aug_p=0.1)
augmented_text = aug.augment(text, n=4)
print("Word insert using LM:")
print(augmented_text)
giving out results as follows:
Word insert using LM:
['It can be the first word of sentence which does not come in with space.', 'It can be the whole first word of sentence which does not come with space.', 'It can [MASK] be the first word of sentence which does not come with space.', 'It can be the first word of sentence [MASK] which does not come with space.']
I'm using nlpaug version 1.1.1
The text was updated successfully, but these errors were encountered:
This issue is related to #175 , but occurs when
action= insert
instead'substitute'
To reproduce error,
giving out results as follows:
I'm using nlpaug version 1.1.1
The text was updated successfully, but these errors were encountered: