powered by
For some analysis steps it might be important to have individual tagged texts instead of one large corpus object. This method produces just that.
split_by_doc_id(obj, keepFeatures = TRUE)# S4 method for kRp.text split_by_doc_id(obj, keepFeatures = TRUE)
# S4 method for kRp.text split_by_doc_id(obj, keepFeatures = TRUE)
An object of class kRp.text.
kRp.text
Either logical, whether to keep all features or drop them, or a character vector of names of features to keep if present.
A named list of objects of class kRp.text. Elements are named by their doc_id.
doc_id
# NOT RUN { myCorpusList <- split_by_doc_id(myCorpus) # }
Run the code above in your browser using DataLab