cnlp_init_udpipe: Interface for initializing the udpipe backend
Description
This function must be run before annotating text with
the udpipe backend. It will parse in English by default,
but you can load other models as well.
Usage
cnlp_init_udpipe(model_name = NULL, model_path = NULL,
feature_flag = FALSE, parser = "default")
Arguments
model_name
string giving the model namel.
Defaults to "english" if NULL.
Ignored if model_path
is not NULL.
model_path
provide a full path to a model file.
feature_flag
boolean. Should universal features be
included in the output.
parser
a character string of length 1, which is
either 'default' (default udpipe dependency
parsing) or 'none' (no dependency parsing needed)
or a character string with more complex parsing
options
Examples
Run this code# NOT RUN {
cnlp_init_udpipe(model_name = "english")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab