It is recommended to initialise your parser with the init_nlp()
function as a handy shortcut. It allows you to
initialise any parser (spacy
, spacy-stanza
, spacy-udpipe
) given a specific language
or model. Any keyword arguments passed to it will be passed down to the initialisation process. See the examples
in this directory to see how to correctly use it.
If you want to, you can also manually add the component to parser. Read through the source code of init_nlp()
inside utils.py
to see how you can do that.