Skip to content
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

custom word augmenter example not working #94

Closed
manishiitg opened this issue Jan 29, 2020 · 0 comments
Closed

custom word augmenter example not working #94

manishiitg opened this issue Jan 29, 2020 · 0 comments

Comments

@manishiitg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant