mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 19:06:33 +03:00
e27c60a702
* Improve the correctness of _parse_patch * If there are no more actions, do not attempt to make further transitions, even if not all states are final. * Assert that the number of actions for a step is the same as the number of states. * Reimplement distillation with oracle cut size The code for distillation with an oracle cut size was not reimplemented after the parser refactor. We did not notice, because we did not have tests for this functionality. This change brings back the functionality and adds this to the parser tests. * Rename states2actions to _states_to_actions for consistency * Test distillation max cuts in NER * Mark parser/NER tests as slow * Typo * Fix invariant in _states_diff_to_actions * Rename _init_batch -> _init_batch_from_teacher * Ninja edit the ninja edit * Check that we raise an exception when we pass the incorrect number or actions * Remove unnecessary get Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com> * Write out condition more explicitly --------- Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com> |
||
---|---|---|
.. | ||
__init__.py | ||
_search.pyx | ||
test_add_label.py | ||
test_arc_eager_oracle.py | ||
test_model.py | ||
test_ner.py | ||
test_neural_parser.py | ||
test_nn_beam.py | ||
test_nonproj.py | ||
test_parse_navigate.py | ||
test_parse.py | ||
test_preset_sbd.py | ||
test_search.py | ||
test_space_attachment.py | ||
test_state.py |