Skip to content

Error with running the Adapters via INCEpTION #34

@mobashgr

Description

@mobashgr

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

image

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.

INCEpTION_Error

Any help?
Best,
Ghadeer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions