spaCy/spacy/pipeline
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
..
_parser_internals Clean up spacy.tokens (#6046) 2020-09-16 20:32:38 +02:00
__init__.py Remove simple_ner code (#6041) 2020-09-09 16:11:27 +02:00
attributeruler.py Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
dep_parser.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
entity_linker.py Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
entityruler.py Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
functions.py Update docs links in codebase 2020-09-04 12:58:50 +02:00
lemmatizer.py Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
morphologizer.pyx Add vectors option to CharacterEmbed (#6069) 2020-09-16 17:45:04 +02:00
multitask.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
ner.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
pipe.pxd Tidy up pipes (#5906) 2020-08-11 23:29:31 +02:00
pipe.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
sentencizer.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
senter.pyx Remove unneeded methods in senter and morphologizer (#6074) 2020-09-16 17:39:41 +02:00
tagger.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
textcat.py positive_label config for textcat (#6062) 2020-09-14 17:08:00 +02:00
tok2vec.py Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00
transition_parser.pxd Tidy up pipes (#5906) 2020-08-11 23:29:31 +02:00
transition_parser.pyx Renaming gold & annotation_setter (#6042) 2020-09-09 10:31:03 +02:00