Learn R Programming

cleanNLP (version 1.5.2)

from_CoNLLU: Reads a CoNLL-U or CoNLL-X File

Description

Takes an file saved in the CoNLL-U or CoNLL-X format and converts it into an annotation object. This is a lossy procedure, grabbing just tokenization, lemmatization, part of speech tags, and dependencies.

Usage

from_CoNLLU(file)

Arguments

file
character vector giving the path to the file

Value

an annotation object with a single document

Examples

Run this code
## Not run: ------------------------------------
# from_CoNLLU(annotation, "/path/to/file.conllu")
## ---------------------------------------------

Run the code above in your browser using DataLab