mirror of https://github.com/explosion/spaCy.git
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__.pxd | ||
__init__.py | ||
_dict_proxies.py | ||
_retokenize.pyi | ||
_retokenize.pyx | ||
_serialize.py | ||
doc.pxd | ||
doc.pyi | ||
doc.pyx | ||
graph.pxd | ||
graph.pyx | ||
morphanalysis.pxd | ||
morphanalysis.pyi | ||
morphanalysis.pyx | ||
span.pxd | ||
span.pyi | ||
span.pyx | ||
span_group.pxd | ||
span_group.pyi | ||
span_group.pyx | ||
token.pxd | ||
token.pyi | ||
token.pyx | ||
underscore.py |