conSIM {LSAfun} | R Documentation |
Similarity in Context
Description
Compute Similarity of a word with a set of two other test words, given a third context word
Usage
conSIM(x,y,z,c,tvectors=tvectors)
Arguments
x |
The relevant word, given as a character of |
y , z |
The two test words, given each as a character of |
c |
The context word in respect to which the similarity of |
tvectors |
the semantic space in which the computation is to be done (a numeric matrix where every row is a word vector) |
Details
Following the example from Kintsch (2014): If one has to judge the similarity between France one the one hand and the test words Germany and Spain on the other hand, this similarity judgement varies as a function of a fourth context word. If Portugal is given as a context word, France is considered to be more similar to Germany than to Spain, and vice versa for the context word Poland. Kintsch (2014) proposed a context sensitive, asymmetrical similarity measure for cases like this, which is implemented here
Value
A list of two similarity values
SIM_XY_zc
: Similarity of x
and y
, given the alternative z
and the context c
SIM_XZ_yc
: Similarity of x
and z
, given the alternative y
and the context c
Author(s)
Fritz Guenther
References
Kintsch, W. (2015). Similarity as a Function of Semantic Distance and Amount of Knowledge. Psychological Review, 121, 559-561.
Tversky, A. (1977). Features of similarity. Psychological Review, 84, 327-352.
See Also
Examples
data(wonderland)
conSIM(x="rabbit",y="alice",z="hatter",c="dormouse",tvectors=wonderland)