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.
cnlp_init_udpipe(
model_name = NULL,
model_path = NULL,
tokenizer = "tokenizer",
tagger = "default",
parser = "default"
)
string giving the model namel.
Defaults to "english" if NULL.
Ignored if model_path
is not NULL.
provide a full path to a model file.
a character string of length 1, which is either 'tokenizer' (default udpipe tokenisation) or a character string with more complex tokenisation options as specified in <URL: http://ufal.mff.cuni.cz/udpipe/users-manual> in which case tokenizer should be a character string where the options are put after each other using the semicolon as separation.
a character string of length 1, which is either 'default' (default udpipe POS tagging and lemmatisation) or 'none' (no POS tagging and lemmatisation needed) or a character string with more complex tagging options as specified in <URL: http://ufal.mff.cuni.cz/udpipe/users-manual> in which case tagger should be a character string where the options are put after each other using the semicolon as separation.
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 as specified in <URL: http://ufal.mff.cuni.cz/udpipe/users-manual> in which case parser should be a character string where the options are put after each other using the semicolon as separation.
Taylor B. Arnold, taylor.arnold@acm.org
if (FALSE) {
cnlp_init_udpipe(model_name = "english")
}
Run the code above in your browser using DataLab