With the transformation of the corpus completed, the next step is to create either a Document-Term Matrix (DTM) or Term-Document Matrix (TDM). What either of these matrices do is create a matrix of word counts for each individual document in the matrix. A DTM would have the documents as rows and the words as columns, while in a TDM, the reverse is true. The text mining can be performed on either matrix.
Differences of TDM and DTM.
Share this highlighthttp://www.safaribooksonline.com/a/mastering-machine-learning/4112045/