cos_sim_calc calculates the cosine measure of similarity between pairs of terms from a corpus.
A numerical matrix for e.g. a Term Document matrix (output from tdm_for_lsa)
The term document matrix is taken as input and cosine meausures of similarity between all pairs of terms are calculated.
A tab delimited text file containing the similarity values between all pairs of terms.
This file can be input to cytoscape directly.
## Not run: x = cos_sim_calc(nummatrix) ## here nummatrix is the 'Term Document Matrix' generated from tdm_for_lsa()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.