mirror of
https://github.com/explosion/spaCy.git
synced 2025-11-02 00:47:52 +03:00
* Move coref scoring code to scorer.py Includes some renames to make names less generic. * Refactor coval code to remove ternary expressions * Black formatting * Add header * Make scorers into registered scorers * Small test fixes * Skip coref tests when torch not present Coref can't be loaded without Torch, so nothing works. * Fix remaining type issues Some of this just involves ignoring types in thorny areas. Two main issues: 1. Some things have weird types due to indirection/ argskwargs 2. xp2torch return type seems to have changed at some point * Update spacy/scorer.py Co-authored-by: kadarakos <kadar.akos@gmail.com> * Small changes from review * Be specific about the ValueError * Type fix Co-authored-by: kadarakos <kadar.akos@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| coref_util.py | ||
| coref.py | ||
| entity_linker.py | ||
| multi_task.py | ||
| parser.py | ||
| span_predictor.py | ||
| spancat.py | ||
| tagger.py | ||
| textcat.py | ||
| tok2vec.py | ||