Description Slots What it does
The docMatrix
creates a special empson
object that
represents a document collection as a matrix of words
directory
A string that gives the filepath to the main directory
indexFile
A string that gives the filepath to the index file for the collection.
type
A string: either "docTerm" for a document-term matrix, or "wordContext" for a word-context matrix.
mat
A matrix of words.
The docMatrix
object holds a vector-space model of
your document collection. The two most common vector-space models (which
are the only two currently supported in empson
) are document-term
matrices and word-context matrices. In a document-term matrix, each column is
a document in the collection, and each row is a word found in that document. In
a word-context matrix, each column is a keyword, and each row is a context term
found within a window of that keyword.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.