Skip to content
Discussion options

You must be logged in to vote

I may have found a workaround, using spaCy wrap:

import spacy
import spacy_wrap

nlp = spacy.blank("da")
config = {"model": {"name": "tner/roberta-large-ontonotes5"}}
nlp.add_pipe("token_classification_transformer", config=config)
doc = nlp("Some text for NER")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rmitsch
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer feat / training Feature: Training utils, Example, Corpus and converters feat / transformer Feature: Transformer
2 participants