spaCy/spacy/syntax
Matthew Honnibal 2da16adcc2 Add dropout optin for parser and NER
Dropout can now be specified in the `Parser.update()` method via
the `drop` keyword argument, e.g.

    nlp.entity.update(doc, gold, drop=0.4)

This will randomly drop 40% of features, and multiply the value of the
others by 1. / 0.4. This may be useful for generalising from small data
sets.

This commit also patches the examples/training/train_new_entity_type.py
example, to use dropout and fix the output (previously it did not output
the learned entity).
2017-04-27 13:18:39 +02:00
..
__init__.pxd
__init__.py
_parse_features.pxd * Add a parse_batch method to Parser, that releases the GIL around a batch of documents. 2016-02-01 08:34:55 +01:00
_parse_features.pyx Tidy up and fix formatting and imports 2017-04-15 13:05:15 +02:00
_state.pxd Fix setting of empty lexeme in initial parse state 2017-03-15 09:26:53 -05:00
_state.pyx * Continue proxying. Some problem currently 2016-02-01 02:22:21 +01:00
arc_eager.pxd * Update for thinc 5.0, including changing cost from int to weight_t, and updating the tagger and parser 2016-01-30 14:31:36 +01:00
arc_eager.pyx Tidy up and fix formatting and imports 2017-04-15 13:05:15 +02:00
beam_parser.pxd Add header for beam parser 2017-03-11 12:45:12 -06:00
beam_parser.pyx Tidy up and fix formatting and imports 2017-04-15 13:05:15 +02:00
iterators.pxd * Refactor noun chunk iterators, so that they're simple functions. Install the iterator when the Doc is created, but allow users to write to the noun_chunk_iterator attribute. The iterator functions accept an object and yield (int start, int end, int label) triples. 2016-05-02 14:25:10 +02:00
iterators.pyx Ensure noun chunks can't be nested. Closes #955 2017-04-23 17:56:39 +02:00
ner.pxd * Remove import of _state module 2015-06-23 17:25:08 +02:00
ner.pyx Tidy up and fix formatting and imports 2017-04-15 13:05:15 +02:00
nonproj.pxd integrated pseudo-projective parsing into parser 2016-03-01 10:09:08 +01:00
nonproj.pyx Tidy up and fix formatting and imports 2017-04-15 13:05:15 +02:00
parser.pxd Use nogil in parser, and set L1 to 0.0 by default 2017-03-15 09:31:01 -05:00
parser.pyx Add dropout optin for parser and NER 2017-04-27 13:18:39 +02:00
stateclass.pxd * Now fully proxied 2016-02-01 02:37:08 +01:00
stateclass.pyx Tidy up and fix formatting and imports 2017-04-15 13:05:15 +02:00
transition_system.pxd Allow beam parsing for NER 2017-03-11 11:12:01 -06:00
transition_system.pyx Remove print statement 2017-04-15 16:11:43 +02:00