Description Usage Arguments Value Examples
Distance is equal to 1 - cosine
1 | get_word_distance(model, w1, w2)
|
model |
trained |
w1 |
first word to compare |
w2 |
second word to compare |
a scalar
with the distance
1 2 3 4 | library(fastrtext)
model_test_path <- system.file("extdata", "model_unsupervised_test.bin", package = "fastrtext")
model <- load_model(model_test_path)
get_word_distance(model, "time", "timing")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.