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

extract_entities returns score of 0 #203

Open
sketing opened this issue Oct 4, 2019 · 1 comment
Open

extract_entities returns score of 0 #203

sketing opened this issue Oct 4, 2019 · 1 comment

Comments

@sketing
Copy link

sketing commented Oct 4, 2019

Expected Behavior

So, I'm using the named_entity_extractor, trained it on some data, then extracting entities from some data the model has never seen before using the extract_entities. Expecting to get back the extracted entities with their scores ranging 0-1

Current Behavior

The entities are extracted correctly, but the score is 0.

Steps to Reproduce

Train model, give it new data, get back score == 0

  • Version: downloaded on 19th of July 2019
  • Where did you get MITIE: Github
  • Platform: 64 bit
@sketing
Copy link
Author

sketing commented Oct 4, 2019

How can I get a score in range 0-1?

P.S.
While debugging I called _f.mitie_ner_get_detection_score(dets,i) on different i values and it returned non-zero scores, but these where weird as well: -5.796280346157666e-309 and 1.07329375104e-311 one of which are negative. Is this behavior typical? If so, then how should one approach this to get a normalized score in the range of 0 to 1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant