0
0
NLPml~5 mins

Document-term matrix in NLP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Document-term matrix (DTM)?
A Document-term matrix is a table that shows how often each word appears in each document. Rows are documents, columns are words, and the cells have counts of word appearances.
Click to reveal answer
beginner
Why do we use a Document-term matrix in text analysis?
We use a Document-term matrix to turn text into numbers so computers can understand and analyze it, like finding patterns or training machine learning models.
Click to reveal answer
beginner
What does each row and column represent in a Document-term matrix?
Each row represents a document, and each column represents a unique word (term) from all documents.
Click to reveal answer
intermediate
How can the values in a Document-term matrix be weighted besides simple counts?
Values can be weighted using methods like TF-IDF, which gives more importance to words that are common in one document but rare across others.
Click to reveal answer
intermediate
What is a common problem with Document-term matrices and how is it handled?
DTMs can be very large and sparse (mostly zeros). We handle this by removing rare words, using dimensionality reduction, or applying sparse matrix storage.
Click to reveal answer
What does a cell value in a Document-term matrix usually represent?
AThe length of the document
BThe number of times a word appears in a document
CThe number of documents containing the word
DThe total number of words in all documents
In a Document-term matrix, what do the rows represent?
AWords
BParagraphs
CSentences
DDocuments
Which technique can improve the usefulness of a Document-term matrix by weighting words?
ATF-IDF
BClustering
CNormalization
DTokenization
What is a common issue with Document-term matrices?
AThey are sparse with many zeros
BThey contain too many images
CThey are always too small
DThey cannot be used for machine learning
How can we reduce the size of a Document-term matrix?
ABy adding more documents
BBy increasing the number of words
CBy removing rare words and using dimensionality reduction
DBy converting text to uppercase
Explain what a Document-term matrix is and why it is useful in text analysis.
Think about how text is turned into numbers for computers.
You got /5 concepts.
    Describe common challenges with Document-term matrices and how to address them.
    Consider what happens when many words appear rarely.
    You got /5 concepts.