mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 11:26:28 +03:00
c4112a1da3
* Require that all SpanGroup spans are from the current doc The restriction on only adding spans from the current doc were already implemented for all operations except for `SpanGroup.__init__`. Initialize copied spans for `SpanGroup.copy` with `Doc.char_span` in order to validate the character offsets and to make it possible to copy spans between documents with differing tokenization. Currently there is no validation that the document texts are identical, but the span char offsets must be valid spans in the target doc, which prevents you from ending up with completely invalid spans. * Undo change in test_beam_overfitting_IO |
||
---|---|---|
.. | ||
__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 |