Closed ianbstewart closed 1 year ago
hello @ianbstewart I was able to reproduce it. will debug it today/tmrw Thanks!
OK I think I fixed it.
since the model just trained on 1 example, it failed to create spans that "really" coffering, some of the spans the model suggested were the entire text and even spans with a special token and there raised an Exception.
I released a new version to PyPi version 2.1.5
you can do pip install fastcoref==2.1.5
Let me know if it helped
Yup, it works now thanks! New output from the same code above:
pred = CorefResult(text="I went to the store and saw my friend, then I saw ...", clusters=[])
When I train a model on a toy dataset and then try to predict coreference, I get a strange error related to the
char_map
of theCorefResult
object. Full example below:Error: