spaCy/spacy/syntax
Matthew Honnibal 817e1fc5e5 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 01:12:50 +02:00
..
__init__.pxd * Work on greedy parser 2014-12-16 22:46:55 +11:00
__init__.py * Work on greedy parser 2014-12-16 22:46:55 +11:00
_beam_utils.pxd Refactor parser (#2308) 2018-05-15 22:17:29 +02:00
_beam_utils.pyx Refactor parser (#2308) 2018-05-15 22:17:29 +02:00
_parser_model.pxd Fix parser for GPU 2018-05-19 17:24:34 +00:00
_parser_model.pyx Fix regression in parser.begin_training() 2018-09-25 11:08:31 +02:00
_state.pxd Try to fix root-outside-sentence bug 2018-05-02 14:39:48 +00:00
_state.pyx Tidy up syntax 2017-10-27 19:45:57 +02:00
arc_eager.pxd WIP on stringstore change. 27 failures 2017-05-28 14:06:40 +02:00
arc_eager.pyx Revert "Improve dynamic oracle when values are missing in parse" 2018-05-16 00:31:52 +02:00
ner.pxd WIP on stringstore change. 27 failures 2017-05-28 14:06:40 +02:00
ner.pyx Fix out-of-bounds access in NER training 2018-10-27 01:12:50 +02:00
nn_parser.pxd Refactor parser (#2308) 2018-05-15 22:17:29 +02:00
nn_parser.pyx Fix serialization when empty parser model. Closes #2482 2018-09-28 15:18:52 +02:00
nonproj.pxd integrated pseudo-projective parsing into parser 2016-03-01 10:09:08 +01:00
nonproj.pyx Merge master into develop. Big merge, many conflicts -- need to review 2018-04-29 14:49:26 +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 Revert "Merge branch 'develop' of https://github.com/explosion/spaCy into develop" 2018-03-27 19:23:02 +02:00
transition_system.pyx Add extra comment on 'add label' in parser 2018-08-15 15:37:24 +02:00