DTM.add_ngrams | R Documentation |
Build a term-term network using a cosine similarity measure built on the term
co-presence in documents. A threshold defined in min.sim
is used to
identify edges. The maximal cliques of the network represent the discovered
n-grams.
DTM.add_ngrams(DTM, min.sim = 0.5, max.terms = 10)
DTM |
A Document Term Matrix. |
min.sim |
The minimal cosine similarity that identifies an edge. |
max.terms |
The maximum size (i.e., the number of terms) in an n-gram. |
The same input Document Term Matrix with extra columns for the n-grams.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.