quantumSimilarity | R Documentation |
quantumSimilarity is a function that takes two words and a state vector and returns the quantum similarity between them. To see more details about the quantum similarity go to Pothos and Busemeyer (2011).
quantumSimilarity( word_a, word_b, gallitoCode, spaceName, neutral_state = TRUE, state, min_cosine_contour = 0.3, neighbors = 100 )
word_a |
The first word the function will evaluate. |
word_b |
The second word the function will evaluate. |
gallitoCode |
Gallito API password to extract information from the LSA semantic space. |
spaceName |
Gallito API LSA semantic space you want to use |
neutral_state |
By default the function will take the neutral state between the two words subspaces to evaluate the similarity |
state |
The initial state the function will use to calculate the similarity between the two words in case 'neutral_state = FALSE'. |
min_cosine_contour |
minimum cosine required for being a contour exemplar. By default 'min_cosine_contour = 0.3'. |
neighbors |
The number of neighbors inside the contour of the word. By default 'neighbors = 100'. |
The function will return a value between 0 and 1 indicating the similarity between the two words.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.