-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
from multivalue import Dialects
aave = Dialects.AfricanAmericanVernacular()
output = aave.transform('Your brother probably does not want to tell you himself')
The code above produces the following error:
Traceback (most recent call last):
File "/user/Documents/test.py", line 5, in <module>
output = aave.transform('Your brother probably does not want to tell you himself')
File "/user/lib/python3.10/site-packages/multivalue/BaseDialect.py", line 189, in transform
return self.convert_sae_to_dialect(string)
File "/user/lib/python3.10/site-packages/multivalue/BaseDialect.py", line 193, in convert_sae_to_dialect
self.update(string)
File "/user/lib/python3.10/site-packages/multivalue/BaseDialect.py", line 218, in update
self.coref_clusters = self.create_coref_cluster(string)
File "/user/lib/python3.10/site-packages/multivalue/BaseDialect.py", line 223, in create_coref_cluster
doc = self.coref(string)
File "/user/lib/python3.10/site-packages/stanza/pipeline/core.py", line 480, in __call__
return self.process(doc, processors)
File "/user/lib/python3.10/site-packages/stanza/pipeline/core.py", line 431, in process
doc = process(doc)
File "/user/lib/python3.10/site-packages/stanza/pipeline/coref_processor.py", line 127, in process
end_word = word_pos[span[1]]
IndexError: list index out of range
This seems to be coming from an issue when the reflexive (e.g. "himself") is the last word in the sentence, which causes an error due to a mismatch in the indexing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels