spaCy/website/docs
Adriane Boyd a4b32b9552
Handle missing reference values in scorer (#6286)
* Handle missing reference values in scorer

Handle missing values in reference doc during scoring where it is
possible to detect an unset state for the attribute. If no reference
docs contain annotation, `None` is returned instead of a score. `spacy
evaluate` displays `-` for missing scores and the missing scores are
saved as `None`/`null` in the metrics.

Attributes without unset states:

* `token.head`: relies on `token.dep` to recognize unset values
* `doc.cats`: unable to handle missing annotation

Additional changes:

* add optional `has_annotation` check to `score_scans` to replace
`doc.sents` hack
* update `score_token_attr_per_feat` to handle missing and empty morph
representations
* fix bug in `Doc.has_annotation` for normalization of `IS_SENT_START`
vs. `SENT_START`

* Fix import

* Update return types
2020-11-03 15:47:18 +01:00
..
api Handle missing reference values in scorer (#6286) 2020-11-03 15:47:18 +01:00
images Update docs [ci skip] 2020-10-06 14:15:08 +02:00
models Update models docs [ci skip] 2020-10-14 20:50:23 +02:00
usage Fix node name typo in dependency matcher example (#6311) 2020-10-28 16:32:46 +01:00
index.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
styleguide.md Update styleguide [ci skip] 2020-09-14 11:25:57 +02:00