Document-term matrix
Appearance
When creating a database of terms that appear in a set of documents the "Document-Term Matrix" contains rows that refer to the documents whose coordinates are the terms... For instance if one has the following two - short - documents:
D1 = "I like databases" D2 = "I hate databases",
then the Document-Term Matrix would be:
I like hate databases ----------------------------
D1 | 1 1 0 1 | D2 | 1 0 1 1 |
----------------------------
which merely shows which documents contain which terms (and how many times).