diff --git a/ariadne/contrib/__init__.py b/ariadne/contrib/__init__.py index 73256e0..e69de29 100644 --- a/ariadne/contrib/__init__.py +++ b/ariadne/contrib/__init__.py @@ -1,7 +0,0 @@ -from ariadne.contrib.adapters import AdapterSequenceTagger -from ariadne.contrib.jieba import JiebaSegmenter -from ariadne.contrib.nltk import NltkStemmer -from ariadne.contrib.sbert import SbertSentenceClassifier -from ariadne.contrib.sklearn import SklearnSentenceClassifier, SklearnMentionDetector -from ariadne.contrib.spacy import SpacyNerClassifier, SpacyPosClassifier -from ariadne.contrib.stringmatcher import LevenshteinStringMatcher diff --git a/wsgi.py b/wsgi.py index f7d2bf4..02647ef 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,14 +1,12 @@ -from ariadne.contrib import * -from ariadne.contrib.adapters import AdapterSentenceClassifier -from ariadne.contrib.simalign import SimAligner from ariadne.server import Server from ariadne.util import setup_logging +from ariadne.contrib.spacy import SpacyNerClassifier setup_logging() server = Server() -server.add_classifier("align", SimAligner()) -# server.add_classifier("spacy_ner", SpacyNerClassifier("en_core_web_sm")) + +server.add_classifier("spacy_ner", SpacyNerClassifier("en_core_web_sm")) # server.add_classifier("spacy_pos", SpacyPosClassifier("en_core_web_sm")) # server.add_classifier("sklearn_sentence", SklearnSentenceClassifier()) # server.add_classifier("jieba", JiebaSegmenter())