NorskRegnesentral / skweak

skweak: A software toolkit for weak supervision applied to NLP tasks
MIT License
918 stars 73 forks source link

Runtime error in display_entities #34

Closed latchukarthick98 closed 2 years ago

latchukarthick98 commented 2 years ago

I am using the latest version of skweak: 0.2.17. I tried running the example (quick-start.ipynb) in the repo. When I try to execute

skweak.utils.display_entities(docs[28], "other_org_detector")

, I get this error.

image

plison commented 2 years ago

Oops, sorry, that was a mistake on my side when correcting a bug yesterday.

latchukarthick98 commented 2 years ago

Thank you! It worked. But the same error persists for "Step by step NER" tutorial. image

plison commented 2 years ago

That's odd, from the error message you got, it seems you are not running the very last version (updated yesterday), since the line 740 in utils.py is now "spans = get_spans(doc, [layer]). Could you do a git pull?