spaCy/spacy/tests/parser
Matthew Honnibal 8656a08777
Add beam_parser and beam_ner components for v3 (#6369)
* Get basic beam tests working

* Get basic beam tests working

* Compile _beam_utils

* Remove prints

* Test beam density

* Beam parser seems to train

* Draft beam NER

* Upd beam

* Add hypothesis as dev dependency

* Implement missing is-gold-parse method

* Implement early update

* Fix state hashing

* Fix test

* Fix test

* Default to non-beam in parser constructor

* Improve oracle for beam

* Start refactoring beam

* Update test

* Refactor beam

* Update nn

* Refactor beam and weight by cost

* Update ner beam settings

* Update test

* Add __init__.pxd

* Upd test

* Fix test

* Upd test

* Fix test

* Remove ring buffer history from StateC

* WIP change arc-eager transitions

* Add state tests

* Support ternary sent start values

* Fix arc eager

* Fix NER

* Pass oracle cut size for beam

* Fix ner test

* Fix beam

* Improve StateC.clone

* Improve StateClass.borrow

* Work directly with StateC, not StateClass

* Remove print statements

* Fix state copy

* Improve state class

* Refactor parser oracles

* Fix arc eager oracle

* Fix arc eager oracle

* Use a vector to implement the stack

* Refactor state data structure

* Fix alignment of sent start

* Add get_aligned_sent_starts method

* Add test for ae oracle when bad sentence starts

* Fix sentence segment handling

* Avoid Reduce that inserts illegal sentence

* Update preset SBD test

* Fix test

* Remove prints

* Fix sent starts in Example

* Improve python API of StateClass

* Tweak comments and debug output of arc eager

* Upd test

* Fix state test

* Fix state test
2020-12-13 09:08:32 +08:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_add_label.py Upd tests 2020-09-29 12:05:38 +02:00
test_arc_eager_oracle.py Add beam_parser and beam_ner components for v3 (#6369) 2020-12-13 09:08:32 +08:00
test_ner.py Add beam_parser and beam_ner components for v3 (#6369) 2020-12-13 09:08:32 +08:00
test_neural_parser.py Update config resolution to use new Thinc 2020-09-27 22:21:31 +02:00
test_nn_beam.py Add beam_parser and beam_ner components for v3 (#6369) 2020-12-13 09:08:32 +08:00
test_nonproj.py Tidy up tests and docs 2020-09-21 20:43:54 +02:00
test_parse.py adding tests for trained models to ensure predict reproducibility 2020-10-13 21:07:13 +02:00
test_parse_navigate.py Tidy up tests and docs 2020-09-21 20:43:54 +02:00
test_preset_sbd.py Add beam_parser and beam_ner components for v3 (#6369) 2020-12-13 09:08:32 +08:00
test_space_attachment.py Tidy up tests and docs 2020-09-21 20:43:54 +02:00
test_state.py Add beam_parser and beam_ner components for v3 (#6369) 2020-12-13 09:08:32 +08:00