Initialize spaCy to call from R.
spacy_initialize( model = "en_core_web_sm", python_executable = NULL, virtualenv = NULL, condaenv = NULL, ask = FALSE, refresh_settings = FALSE, save_profile = FALSE, check_env = TRUE, entity = TRUE )
Language package for loading spaCy. Example:
en_core_web_sm (English) and
de_core_web_sm (German). Default is
the full path to the Python executable, for which spaCy is installed
set a path to the Python virtual environment with spaCy
virtualenv = "~/myenv"
set a path to the anaconda virtual environment with spaCy
condaenv = "myenv"
FALSE, use the first spaCy installation found;
TRUE, list available spaCy installations and prompt the user for
which to use. If another (e.g.
python_executable) is set, then this
value will always be treated as
TRUE, spacyr will ignore the saved
settings in the profile and initiate a search of new settings.
TRUE, the current spaCy setting will
be saved for the future use.
logical; check whether conda/virtual environment generated
FALSE is selected, named entity recognition
is turned off in spaCy. This will speed up the parsing as it will exclude
ner from the pipeline. For details of spaCy pipeline, see
https://spacy.io/usage/processing-pipelines. The option
is available only for spaCy version 2.0.0 or higher.