We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when i try your example for custom word augmenter i get error
AttributeError Traceback (most recent call last) in () 35 for token in tokens: 36 print(token) ---> 37 print('{} --> {}'.format(token, aug.augment([token])[0]))
1 frames /usr/local/lib/python3.6/dist-packages/nlpaug/augmenter/word/word_augmenter.py in clean(cls, data) 29 @classmethod 30 def clean(cls, data): ---> 31 return data.strip() 32 33 def skip_aug(self, token_idxes, tokens):
AttributeError: 'list' object has no attribute 'strip'`
i am using the beta version i.e directly clone from your repo
The text was updated successfully, but these errors were encountered:
0903745
No branches or pull requests
when i try your example for custom word augmenter i get error
`The
AttributeError Traceback (most recent call last)
in ()
35 for token in tokens:
36 print(token)
---> 37 print('{} --> {}'.format(token, aug.augment([token])[0]))
1 frames
/usr/local/lib/python3.6/dist-packages/nlpaug/augmenter/word/word_augmenter.py in clean(cls, data)
29 @classmethod
30 def clean(cls, data):
---> 31 return data.strip()
32
33 def skip_aug(self, token_idxes, tokens):
AttributeError: 'list' object has no attribute 'strip'`
i am using the beta version i.e directly clone from your repo
The text was updated successfully, but these errors were encountered: