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
importnlpaug.augmenter.wordasnaworiginal=""" “Fury said to a mouse, That he met in the house, ‘Let us both go to law: I will prosecute you.—Come, I’ll take no denial; We must have a trial: For really this morning I’ve nothing to do.’"""aug=naw.ContextualWordEmbsAug(model_path="bert-base-cased", action="substitute")
print(aug.augment(original)[0])
Output
White Fury said to a friend, That he met in the library, No Let them both go to law : I will prosecute you. No Come, I ’ ll take no denial ; We shall have a trial : but really this day I ’ still nothing to do. ’
Desired output
White Fury said to a
friend, That he
met in the
library,
No Let them
both go to
law : I will
prosecute
you. No Come,
I ’ ll take no
denial ; We
shall have a
trial : but
really this
day I ’ still
nothing
to do. ’
Code
Output
Desired output
Python version
3.10.9
(Shortened) pip list
The text was updated successfully, but these errors were encountered: