spaCy/website/docs
Ines Montani 0426689db8 💫 Improve Doc.to_json and add Doc.is_nered (#3381)
* Use default return instead of else

* Add Doc.is_nered to indicate if entities have been set

* Add properties in Doc.to_json if they were set, not if they're available

This way, if a processed Doc exports "pos": None, it means that the tag was explicitly unset. If it exports "ents": [], it means that entity annotations are available but that this document doesn't contain any entities. Before, this would have been unclear and problematic for training.
2019-03-10 15:24:34 +01:00
..
api 💫 Improve Doc.to_json and add Doc.is_nered (#3381) 2019-03-10 15:24:34 +01:00
images Fix displaCy visualizations in docs (closes #3357) [ci skip] 2019-03-06 13:20:44 +01:00
models 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
usage Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
index.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
styleguide.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00