Learn R Programming

fastTextR (version 2.1.0)

ft_analogies: Get Analogies

Description

TODO

Usage

ft_analogies(model, word_triplets, k = 10L)

Value

.

Arguments

model

an object inheriting from "fasttext".

word_triplets

a character vector of length string giving the word.

k

an integer giving the number of nearest neighbors to be returned.

Examples

Run this code
if (FALSE) {
ft_analogies(model, c("berlin", "germany", "france"), k = 6L)
}

Run the code above in your browser using DataLab