data(brussels_reviews_anno, package = "udpipe")
head(brussels_reviews_anno)
x <- paste.data.frame(brussels_reviews_anno,
term = "lemma",
group = c("doc_id", "sentence_id"))
str(x)
x <- paste.data.frame(brussels_reviews_anno,
term = c("lemma", "token"),
group = c("doc_id", "sentence_id"),
collapse = "-")
str(x)
Run the code above in your browser using DataLab