Closed lingvisa closed 4 years ago
StanfordNLP (not to be confused with CoreNLP) has no NER component. So the component that runs here is spaCy's. The example was meant to demonstrate that you can combine this wrapper with other arbitrary spaCy components, including custom pipeline components. The StanfordNLP
wrapper will create no components in the pipeline, since it can only run jointly together with the tokenization.
StanfordNLP will run whichever processors you enable when you create the pipeline – see the docs for details: https://stanfordnlp.github.io/stanfordnlp/pipeline.html
Good to know and thanks, Ines.
For this example, it seems the pipeline contains NE models both from stanfordNLP and spacy. How do I know which model is actually producing results? Does this spacy model overwrites the stanfordNLP model due to nlp.add_pipe(ner)?