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

Performs invalid character removal and whitespace cleanup on text #68

Open
letmeseeletmesee opened this issue Apr 3, 2022 · 0 comments

Comments

@letmeseeletmesee
Copy link

recognizer = absa.aux_models.BasicPatternRecognizer()
nlp = absa.load(pattern_recognizer=recognizer)
completed_task = nlp(text=..., aspects=['slack', 'price'])
slack, price = completed_task.examples

TypeError Traceback (most recent call last)
in ()
1 recognizer = absa.aux_models.BasicPatternRecognizer()
2 nlp = absa.load(pattern_recognizer=recognizer)
----> 3 completed_task = nlp(text=..., aspects=['slack', 'price'])
4 slack, price = completed_task.examples

6 frames
/usr/local/lib/python3.7/dist-packages/transformers/models/bert/tokenization_bert.py in _clean_text(self, text)
488 """Performs invalid character removal and whitespace cleanup on text."""
489 output = []
--> 490 for char in text:
491 cp = ord(char)
492 if cp == 0 or cp == 0xFFFD or _is_control(char):

TypeError: 'ellipsis' object is not iterable

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