udpipe (version 0.3)

udpipe_load_model: Load an UDPipe model

Description

Load an UDPipe model so that it can be use in udpipe_annotate

Usage

udpipe_load_model(file)

Arguments

file

full path to the model

Value

An object of class udpipe_model which is a list with 2 elements

  • file: The path to the model as provided by file

  • model: An Rcpp-generated pointer to the loaded model which can be used in udpipe_annotate

References

https://ufal.mff.cuni.cz/udpipe, https://lindat.mff.cuni.cz/repository/xmlui/handle/11234/1-2364

See Also

udpipe_annotate, udpipe_download_model, udpipe_train

Examples

Run this code
# NOT RUN {
x <- udpipe_download_model(language = "dutch-lassysmall", model_dir = tempdir())
x$file_model
ud_dutch <- udpipe_load_model(x$file_model)
# }
# NOT RUN {
x <- udpipe_download_model(language = "english")
x$file_model
ud_english <- udpipe_load_model(x$file_model)

x <- udpipe_download_model(language = "hebrew")
x$file_model
ud_hebrew <- udpipe_load_model(x$file_model)
# }

Run the code above in your browser using DataLab