Description Usage Arguments Details Value Author(s) See Also Examples
Computes distance metrics for two single words
1 |
x |
A single word, given as a character of |
y |
A single word, given as a character of |
method |
Specifies whether to compute |
tvectors |
the semantic space in which the computation is to be done (a numeric matrix where every row is a word vector) |
breakdown |
if |
Computes Minkowski metrics, i.e. geometric distances between the vectors for two given words. Possible options are euclidean
for the Euclidean Distance, d(x,y) = √{∑{(x-y)^2}}, and cityblock
for the City Block metric, d(x,y) = ∑{|x-y|}
The distance value as a numeric
Fritz G?nther
1 2 3 | data(wonderland)
distance("alice","rabbit",method="euclidean",tvectors=wonderland)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.