Interface for initializing the udpipe backend
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" )
model_name |
string giving the model namel.
Defaults to "english" if NULL.
Ignored if |
model_path |
provide a full path to a model file. |
tokenizer |
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. |
tagger |
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. |
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 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
## Not run: cnlp_init_udpipe(model_name = "english") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.