spaCy/spacy/syntax
Matthew Honnibal f57bea8ab6
💫 Prevent parser from predicting unseen classes (#3075)
The output weights often return negative scores for classes, especially
via the bias terms. This means that when we add a new class, we can't
rely on just zeroing the weights, or we'll end up with positive
predictions for those labels.

To solve this, we use nan values as the initial weights for new labels.
This prevents them from ever coming out on top. During backprop, we
replace the nan values with the minimum assigned score, so that we're
still able to learn these classes.
2018-12-20 16:12:22 +01: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
_beam_utils.pyx Refactor parser (#2308) 2018-05-15 22:17:29 +02:00
_parser_model.pxd
_parser_model.pyx 💫 Prevent parser from predicting unseen classes (#3075) 2018-12-20 16:12:22 +01:00
_state.pxd
_state.pyx
arc_eager.pxd
arc_eager.pyx Revert "Improve dynamic oracle when values are missing in parse" 2018-05-16 00:31:52 +02:00
ner.pxd
ner.pyx
nn_parser.pxd 💫 Better support for semi-supervised learning (#3035) 2018-12-10 16:25:33 +01:00
nn_parser.pyx
nonproj.pxd
nonproj.pyx
stateclass.pxd Fix memory leak in beam parser 2017-11-14 02:11:40 +01:00
stateclass.pyx
transition_system.pxd
transition_system.pyx