powered by
cos_sim_calc calculates the cosine measure of similarity between pairs of terms from corpus.
cos_sim_calc
cos_sim_calc(nummatrix)
A numerical matrix for e.g. a Term Document matrix (output from tdm_for_lsa)
An R object and a tab delimited text file containing the similarity values between all pairs of terms.
The term document matrix is taken as input and cosine meausures of similarity between all pairs of terms are calculated.
https://en.wikipedia.org/wiki/Cosine_similarity
tdm_for_lsa
# NOT RUN { x = cos_sim_calc(nummatrix) # } # NOT RUN { ## here nummatrix is the 'Term Document Matrix' generated from tdm_for_lsa() # }
Run the code above in your browser using DataLab