spaCy/spacy/ml/models
Paul O'Leary McCann 9da16df96e Add guards around torch import
Torch is required for the coref/spanpred models but shouldn't be
required for spaCy in general.

The one tricky part of this is that one function in coref_util relied on
torch, but that file was imported in several places. Since the function
was only used in one place I moved it there.
2022-05-24 15:16:25 +09:00
..
__init__.py Add guards around torch import 2022-05-24 15:16:25 +09:00
coref_util.py Add guards around torch import 2022-05-24 15:16:25 +09:00
coref.py Add guards around torch import 2022-05-24 15:16:25 +09:00
entity_linker.py Fix entity linker batching (#9669) 2022-03-04 09:17:36 +01:00
multi_task.py Auto-format code with black (#10209) 2022-02-06 16:30:30 +01:00
parser.py Replace use_ops("numpy") by use_ops("cpu") in the parser (#9501) 2021-10-21 11:22:45 +02:00
span_predictor.py new parameters 2022-05-17 15:36:32 +00:00
spancat.py Merge branch 'master' into feature/coref 2022-02-03 19:01:18 +09:00
tagger.py Tagger: use unnormalized probabilities for inference (#10197) 2022-03-15 14:15:31 +01:00
textcat.py 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
tok2vec.py MultiHashEmbed vector docs correction (#9918) 2021-12-27 11:18:08 +01:00