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

Entity types with dashes cause errors in ner.pyx #1967

Closed
r-wheeler opened this issue Feb 11, 2018 · 3 comments
Closed

Entity types with dashes cause errors in ner.pyx #1967

r-wheeler opened this issue Feb 11, 2018 · 3 comments
Labels
bug Bugs and behaviour differing from documentation feat / ner Feature: Named Entity Recognizer

Comments

@r-wheeler
Copy link

When training NER task on entities that are in BILOU that also have a dash the line here throws this error. Simple workaround was to replace the dash character in my entities in a preprocessing step.

Your Environment

Info about spaCy

  • spaCy version: 2.0.5
  • Platform: Linux-4.4.0-1049-aws-x86_64-with-debian-stretch-sid
  • Python version: 3.6.4
  • Models: en_core_web_lg, en
@r-wheeler r-wheeler changed the title Entities with dashes cause errors in Entities with dashes cause errors in ner.pyx Feb 11, 2018
@honnibal
Copy link
Member

You mean entity labels with dash, right? Like if the label is JOB-NAME? Agree that we shouldn't have that restriction.

@honnibal honnibal added the bug Bugs and behaviour differing from documentation label Feb 11, 2018
@honnibal honnibal changed the title Entities with dashes cause errors in ner.pyx Entity types with dashes cause errors in ner.pyx Feb 11, 2018
@r-wheeler
Copy link
Author

r-wheeler commented Feb 11, 2018 via email

@ines ines added the feat / ner Feature: Named Entity Recognizer label Mar 27, 2018
@ines ines closed this as completed in 3eb67bb Mar 28, 2018
@lock
Copy link

lock bot commented May 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs and behaviour differing from documentation feat / ner Feature: Named Entity Recognizer
Projects
None yet
Development

No branches or pull requests

3 participants