VectorSource(x, encoding = "UTF-8")
x
.VectorSource
which extends the class
Source
representing a vector where each entry is interpreted as
a document.getSources
to list available sources.docs <- c("This is a text.", "This another one.")
(vs <- VectorSource(docs))
inspect(Corpus(vs))
Run the code above in your browser using DataLab