spaCy/spacy
Adriane Boyd 420b1d854b
Update textcat scorer threshold behavior (#11696)
* Update textcat scorer threshold behavior

For `textcat` (with exclusive classes) the scorer should always use a
threshold of 0.0 because there should be one predicted label per doc and
the numeric score for that particular label should not matter.

* Rename to test_textcat_multilabel_threshold

* Remove all uses of threshold for multi_label=False

* Update Scorer.score_cats API docs

* Add tests for score_cats with thresholds

* Update textcat API docs

* Fix types

* Convert threshold back to float

* Fix threshold type in docstring

* Improve formatting in Scorer API docs
2022-11-02 15:35:04 +01:00
..
cli Fix issues with DVC commands (#11592) 2022-10-18 15:11:39 +09:00
displacy Docs: displaCy documentation - data types, `parse_{deps,ents,spans}`, spans example (#10950) 2022-08-16 11:23:34 -04:00
kb Refactor KB for easier customization (#11268) 2022-09-08 10:38:07 +02:00
lang Merge remote-tracking branch 'upstream/master' into chore/update-develop-from-master-v3.5 2022-10-20 13:38:49 +02:00
matcher Add levenshtein from polyleven (#11418) 2022-09-14 17:05:22 +02:00
ml Handle Docs with no entities in EntityLinker (#11640) 2022-10-28 10:25:34 +02:00
pipeline Update textcat scorer threshold behavior (#11696) 2022-11-02 15:35:04 +01:00
tests Update textcat scorer threshold behavior (#11696) 2022-11-02 15:35:04 +01:00
tokens Merge remote-tracking branch 'upstream/master' into chore/update-develop-from-master-v3.5 2022-10-20 13:38:49 +02:00
training Preserve missing entity annotation in augmenters (#11540) 2022-09-27 10:16:51 +02:00
__init__.pxd
__init__.py Simplify and clarify enable/disable behavior of spacy.load() (#11459) 2022-09-27 14:22:36 +02:00
__main__.py
about.py Set version to v3.4.2 (#11672) 2022-10-19 17:33:55 +02:00
attrs.pxd
attrs.pyx
compat.py
default_config.cfg
default_config_pretraining.cfg
errors.py Merge branch 'master_copy' into develop_copy 2022-09-30 15:40:26 +02:00
glossary.py
language.py Simplify and clarify enable/disable behavior of spacy.load() (#11459) 2022-09-27 14:22:36 +02:00
lexeme.pxd
lexeme.pyi
lexeme.pyx
lookups.py
morphology.pxd
morphology.pyx
parts_of_speech.pxd
parts_of_speech.pyx
pipe_analysis.py
py.typed
schemas.py Fix multiple entries per custom extension in doc json (#11551) 2022-10-19 15:52:47 +02:00
scorer.py Update textcat scorer threshold behavior (#11696) 2022-11-02 15:35:04 +01:00
strings.pxd `StringStore`-related optimizations (#10938) 2022-07-04 15:04:03 +02:00
strings.pyi
strings.pyx `StringStore`-related optimizations (#10938) 2022-07-04 15:04:03 +02:00
structs.pxd
symbols.pxd
symbols.pyx
tokenizer.pxd
tokenizer.pyx
ty.py
typedefs.pxd
typedefs.pyx
util.py Simplify and clarify enable/disable behavior of spacy.load() (#11459) 2022-09-27 14:22:36 +02:00
vectors.pyx
vocab.pxd
vocab.pyi
vocab.pyx