tc <- create_tcorpus(c('Text one first sentence. Text one second sentence', 'Text two'),
split_sentences = TRUE)
doc <- tc$context() ## default context is doc_id (document level)
doc
sent <- tc$context('sentence') ## can specify sentence level
sent
Run the code above in your browser using DataLab