mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
a119667a36
* Clean up spacy.tokens * Update `set_children_from_heads`: * Don't check `dep` when setting lr_* or sentence starts * Set all non-sentence starts to `False` * Use `set_children_from_heads` in `Token.head` setter * Reduce similar/duplicate code (admittedly adds a bit of overhead) * Update sentence starts consistently * Remove unused `Doc.set_parse` * Minor changes: * Declare cython variables (to avoid cython warnings) * Clean up imports * Modify set_children_from_heads to set token range Modify `set_children_from_heads` so that it adjust tokens within a specified range rather then the whole document. Modify the `Token.head` setter to adjust only the tokens affected by the new head assignment. |
||
---|---|---|
.. | ||
__init__.py | ||
test_issue1-1000.py | ||
test_issue1001-1500.py | ||
test_issue1501-2000.py | ||
test_issue2001-2500.py | ||
test_issue2501-3000.py | ||
test_issue3001-3500.py | ||
test_issue3501-4000.py | ||
test_issue4001-4500.py | ||
test_issue4501-5000.py | ||
test_issue5048.py | ||
test_issue5082.py | ||
test_issue5137.py | ||
test_issue5141.py | ||
test_issue5152.py | ||
test_issue5230.py | ||
test_issue5458.py | ||
test_issue5551.py | ||
test_issue5838.py | ||
test_issue5918.py |