huggingface / neuralcoref

✨Fast Coreference Resolution in spaCy with Neural Networks
https://huggingface.co/coref/
MIT License
2.85k stars 477 forks source link

Fix wrong building of Mention Type one-hot vectors #341

Open valedica opened 2 years ago

valedica commented 2 years ago

This is way to fix #340. This is done by avoiding slicing and using coordinate indexing instead for the assignment.