I am trying to add spacy's already trained parser for Norwegian Bokmål to a blank spacy pipe. I get no error message when I add the pipe, but whatever the input, the pipe categorizes all tokens as nouns. What am I missing here?
import spacy
from spacy import displacy
nlp = spacy.blank("nb")
wanted_pipes = ["morphologizer", "parser"]
for pipe_name in wanted_pipes:
if pipe_name not in nlp.pipe_names:
nlp.add_pipe(pipe_name, source = spacy.load("nb_core_news_sm"))
nlp.initialize()
doc = nlp("Katten heter Petrus.") # a random Norwegian sentence