spaCy/spacy/syntax
Matthew Honnibal ad068f51be Fix out-of-bounds access in NER training
The helper method state.B(1) gets the index of the first token of the
buffer, or -1 if no such token exists. Normally this is safe because we
pass this to functions like state.safe_get(), which returns an empty
token. Here we used it directly as an array index, which is not okay!

This error may have been the cause of out-of-bounds access errors during
training. Similar errors may still be around, so much be hunted down.
Hunting this one down took a long time...I printed out values across
training runs and diffed, looking for points of divergence between
runs, when no randomness should be allowed.
2018-10-27 00:46:30 +02:00
..
__init__.pxd
__init__.py
_beam_utils.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
_state.pxd Fix bug in 8-token parser features 2017-10-28 23:01:35 +00:00
_state.pyx Tidy up syntax 2017-10-27 19:45:57 +02:00
arc_eager.pxd
arc_eager.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
ner.pxd
ner.pyx Fix out-of-bounds access in NER training 2018-10-27 00:46:30 +02:00
nn_parser.pxd Fix bias in parser 2017-10-19 18:42:11 +02:00
nn_parser.pyx Fix bug when too many entity types. Fixes #2800 2018-09-27 13:54:34 +02:00
nonproj.pxd
nonproj.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
stateclass.pxd Fix memory leak in beam parser 2017-11-14 02:11:40 +01:00
stateclass.pyx Fix memory leak in beam parser 2017-11-14 02:11:40 +01:00
transition_system.pxd
transition_system.pyx 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00