spaCy/spacy/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
..
defaults train is from-config by default (#5575) 2020-06-12 02:02:07 +02:00
__init__.py remove Tensorizer 2020-06-01 23:38:48 +02:00
entityruler.py unicode -> str consistency [ci skip] 2020-05-24 18:51:10 +02:00
functions.py unicode -> str consistency 2020-05-24 17:20:58 +02:00
hooks.py remove Tensorizer 2020-06-01 23:38:48 +02:00
morphologizer.pyx Update get_loss for senter and morphologizer (#5724) 2020-07-08 13:59:28 +02:00
pipes.pyx Fix get_loss for values outside of labels in senter (#5730) 2020-07-09 01:41:58 +02:00
simple_ner.py refactor fixes (#5664) 2020-06-29 14:33:00 +02:00
tok2vec.py Remove dead and/or deprecated code (#5710) 2020-07-06 13:06:25 +02:00