Experiment - Document-term matrix
Problem:You want to convert a small set of text documents into a document-term matrix to prepare for text analysis.
Current Metrics:The current code creates a document-term matrix but includes all words, including very common words like 'the' and 'is', which may not be useful.
Issue:The matrix is too large and noisy because it includes stop words and very rare words, making it harder to analyze and slowing down further processing.