spaCy/spacy/tests/pipeline
Adriane Boyd ad15499b3b
Fix get_loss for values outside of labels in senter (#5730)
* Fix get_loss for None alignments in senter

When converting the `sent_start` values back to `SentenceRecognizer`
labels, handle `None` alignments.

* Handle SENT_START as -1

Handle SENT_START as -1 (or -1 converted to uint64) by treating any
values other than 1 the same as 0 in `SentenceRecognizer.get_loss`.
2020-07-09 01:41:58 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_analysis.py Rename spacy.analysis to spacy.pipe_analysis 2020-05-22 17:42:06 +02:00
test_entity_linker.py Feature/example only (#5707) 2020-07-06 13:02:36 +02:00
test_entity_ruler.py Tidy up and auto-format 2020-03-25 12:28:12 +01:00
test_factories.py Drop Python 2.7 and 3.5 (#4828) 2019-12-22 01:53:56 +01:00
test_functions.py Drop Python 2.7 and 3.5 (#4828) 2019-12-22 01:53:56 +01:00
test_morphologizer.py Feature/example only (#5707) 2020-07-06 13:02:36 +02:00
test_pipe_methods.py Move to spacy.analysis 2020-05-22 16:43:18 +02:00
test_sentencizer.py Improve spacy.gold (no GoldParse, no json format!) (#5555) 2020-06-26 19:34:12 +02:00
test_senter.py Fix get_loss for values outside of labels in senter (#5730) 2020-07-09 01:41:58 +02:00
test_simple_ner.py Tidy up and auto-format 2020-06-20 14:15:04 +02:00
test_tagger.py Feature/example only (#5707) 2020-07-06 13:02:36 +02:00
test_textcat.py Remove dead and/or deprecated code (#5710) 2020-07-06 13:06:25 +02:00