mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 02:46:35 +03:00
cae4589f5a
* Replace EntityRuler with SpanRuler implementation Remove `EntityRuler` and rename the `SpanRuler`-based `future_entity_ruler` to `entity_ruler`. Main changes: * It is no longer possible to load patterns on init as with `EntityRuler(patterns=)`. * The older serialization formats (`patterns.jsonl`) are no longer supported and the related tests are removed. * The config settings are only stored in the config, not in the serialized component (in particular the `phrase_matcher_attr` and overwrite settings). * Add migration guide to EntityRuler API docs * docs update * Minor edit Co-authored-by: svlandeg <svlandeg@github.com>
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
from .attribute_ruler import AttributeRuler
|
|
from .dep_parser import DependencyParser
|
|
from .edit_tree_lemmatizer import EditTreeLemmatizer
|
|
from .entity_linker import EntityLinker
|
|
from .ner import EntityRecognizer
|
|
from .lemmatizer import Lemmatizer
|
|
from .morphologizer import Morphologizer
|
|
from .pipe import Pipe
|
|
from .trainable_pipe import TrainablePipe
|
|
from .senter import SentenceRecognizer
|
|
from .sentencizer import Sentencizer
|
|
from .tagger import Tagger
|
|
from .textcat import TextCategorizer
|
|
from .spancat import SpanCategorizer
|
|
from .span_ruler import SpanRuler
|
|
from .textcat_multilabel import MultiLabel_TextCategorizer
|
|
from .tok2vec import Tok2Vec
|
|
from .functions import merge_entities, merge_noun_chunks, merge_subtokens
|
|
|
|
__all__ = [
|
|
"AttributeRuler",
|
|
"DependencyParser",
|
|
"EntityLinker",
|
|
"EntityRecognizer",
|
|
"Morphologizer",
|
|
"Lemmatizer",
|
|
"MultiLabel_TextCategorizer",
|
|
"Pipe",
|
|
"SentenceRecognizer",
|
|
"Sentencizer",
|
|
"SpanCategorizer",
|
|
"SpanRuler",
|
|
"Tagger",
|
|
"TextCategorizer",
|
|
"Tok2Vec",
|
|
"TrainablePipe",
|
|
"merge_entities",
|
|
"merge_noun_chunks",
|
|
"merge_subtokens",
|
|
]
|