spaCy/website/docs/api
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
..
annotation.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
cli.md 💫 Improve converters and training data file formats (#3374) 2019-03-08 23:15:23 +01:00
cython-classes.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
cython-structs.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
cython.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
dependencyparser.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
doc.md 💫 Improve Doc.to_json and add Doc.is_nered (#3381) 2019-03-10 15:24:34 +01:00
entityrecognizer.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
entityruler.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
goldcorpus.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
goldparse.md Auto-format [ci skip] 2019-02-27 12:07:35 +01:00
index.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
language.md Remove n_threads 2019-02-17 22:25:42 +01:00
lemmatizer.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
lexeme.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
matcher.md Remove n_threads 2019-02-17 22:25:42 +01:00
phrasematcher.md Remove n_threads 2019-02-17 22:25:42 +01:00
pipeline-functions.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
sentencesegmenter.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
span.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
stringstore.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
tagger.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
textcategorizer.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
token.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
tokenizer.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
top-level.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
vectors.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
vocab.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00