mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
78a8bec4d0
* Make core projectivization methods cdef nogil While profiling the parser, I noticed that relatively a lot of time is spent in projectivization. This change rewrites the functions in the core loops as cdef nogil for efficiency. In C++-land, we use vector in place of Python lists and absent heads are represented as -1 in place of None. * _heads_to_c: add assertion Validation should be performed by the caller, but this assertion ensures that we are not reading/writing out of bounds with incorrect input. |
||
---|---|---|
.. | ||
__init__.py | ||
test_add_label.py | ||
test_arc_eager_oracle.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_space_attachment.py | ||
test_state.py |