mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 02:46:35 +03:00
6b07be2110
* Add `Language.distill` This method is the distillation counterpart of `Language.update`. It takes a teacher `Language` instance and distills the student pipes on the teacher pipes. * Apply suggestions from code review Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com> * Clarify that how Example is used in distillation * Update transition parser distill docstring for examples argument * Pass optimizer to `TrainablePipe.distill` * Annotate pipe before update As discussed internally, we want to let a pipe annotate before doing an update with gold/silver data. Otherwise, the output may be (too) informed by the gold/silver data. * Rename `component_map` to `student_to_teacher` * Better synopsis in `Language.distill` docstring * `name` -> `student_name` * Fix labels type in docstring * Mark distill test as slow * Fix `student_to_teacher` type in docs --------- Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com> |
||
---|---|---|
.. | ||
_edit_tree_internals | ||
_parser_internals | ||
legacy | ||
__init__.py | ||
attribute_ruler.py | ||
dep_parser.py | ||
edit_tree_lemmatizer.py | ||
entity_linker.py | ||
entityruler.py | ||
functions.py | ||
lemmatizer.py | ||
morphologizer.pyx | ||
ner.py | ||
pipe.pxd | ||
pipe.pyi | ||
pipe.pyx | ||
sentencizer.pyx | ||
senter.pyx | ||
span_ruler.py | ||
spancat.py | ||
tagger.pyx | ||
textcat_multilabel.py | ||
textcat.py | ||
tok2vec.py | ||
trainable_pipe.pxd | ||
trainable_pipe.pyx | ||
transition_parser.pyx |