spaCy/spacy/pipeline/_parser_internals
Adriane Boyd a119667a36
Clean up spacy.tokens (#6046)
* 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.
2020-09-16 20:32:38 +02:00
..
__init__.py The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00
_state.pxd Improve implementation of fix #6010 2020-09-02 14:42:32 +02:00
_state.pyx The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00
arc_eager.pxd The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00
arc_eager.pyx Clean up spacy.tokens (#6046) 2020-09-16 20:32:38 +02:00
ner.pxd The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00
ner.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
nonproj.pxd The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00
nonproj.pyx Clean up spacy.tokens (#6046) 2020-09-16 20:32:38 +02:00
stateclass.pxd The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00
stateclass.pyx Improve implementation of fix #6010 2020-09-02 14:42:32 +02:00
transition_system.pxd Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
transition_system.pyx The Parser is now a Pipe (2) (#5844) 2020-07-30 23:30:54 +02:00