Learn R Programming

cleanNLP (version 1.5.1)

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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab