neutralState | R Documentation |
neutralState is a function that takes two words, generates its projectors and estimates the neutral state vector in between. To see more details about the quantum similarity go to Pothos and Busemeyer (2011).
neutralState( word_a, word_b, gallitoCode, spaceName, 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 |
min_cosine_contour |
minimum cosine required for being a contour exemplar. |
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.