Hi,
I have been trying to run the code for apdaters classifier. Here is the wsgi.py
`from ariadne.server import Server
from ariadne.util import setup_logging
from ariadne.contrib.spacy import SpacyNerClassifier
from ariadne.contrib.adapters import AdapterSequenceTagger
setup_logging()
server = Server()
server.add_classifier(
"adapter_pos",
AdapterSequenceTagger(
base_model_name="bert-base-uncased",
adapter_name="pos/ldc2012t13@vblagoje",
labels=[
"ADJ",
"ADP",
"ADV",
"AUX",
"CCONJ",
"DET",
"INTJ",
"NOUN",
"NUM",
"PART",
"PRON",
"PROPN",
"PUNCT",
"SCONJ",
"SYM",
"VERB",
"X",
], ),
)
app = server._app
if name == "main":
server.start(debug=True, port=40022)`
Here is the screenshot from the error

I have a follow-up question, what to do if I need to automatically load a pre-trained model without training? I tried to use the token classification pipeline for the documents on INCEpTION, but it is taking ages and it doesn't proceed.

Any help?
Best,
Ghadeer
Hi,
I have been trying to run the code for apdaters classifier. Here is the wsgi.py
`from ariadne.server import Server
from ariadne.util import setup_logging
from ariadne.contrib.spacy import SpacyNerClassifier
from ariadne.contrib.adapters import AdapterSequenceTagger
setup_logging()
server = Server()
server.add_classifier(
"adapter_pos",
AdapterSequenceTagger(
base_model_name="bert-base-uncased",
adapter_name="pos/ldc2012t13@vblagoje",
labels=[
"ADJ",
"ADP",
"ADV",
"AUX",
"CCONJ",
"DET",
"INTJ",
"NOUN",
"NUM",
"PART",
"PRON",
"PROPN",
"PUNCT",
"SCONJ",
"SYM",
"VERB",
"X",
], ),
)
app = server._app
if name == "main":
server.start(debug=True, port=40022)`
Here is the screenshot from the error
I have a follow-up question, what to do if I need to automatically load a pre-trained model without training? I tried to use the token classification pipeline for the documents on INCEpTION, but it is taking ages and it doesn't proceed.
Any help?
Best,
Ghadeer