НачатьНачать бесплатно

Create a document term matrix

The document term matrix or DTM is a matrix representation of a corpus.

Creating the DTM from the text corpus is the first step towards building a topic model.

Can you create a DTM from the pre-loaded corpus on "Climate change" called corpus_climate?

The library tm has been pre-loaded for this exercise.

Это упражнение является частью курса

Analyzing Social Media Data in R

Посмотреть курс

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

# Create a document term matrix (DTM) from the pre-loaded corpus
dtm_climate <- ___(___)
dtm_climate
Редактировать и запускать код