neutralState: neutralState

View source: R/QLSA.R

neutralStateR Documentation

neutralState

Description

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).

Usage

neutralState(
  word_a,
  word_b,
  gallitoCode,
  spaceName,
  min_cosine_contour = 0.3,
  neighbors = 100
)

Arguments

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'.

Value

The function will return a value between 0 and 1 indicating the similarity between the two words.


alejandrommingo/QLSA documentation built on March 19, 2022, 3:36 a.m.