distance: Gets closest words to the searched word

Description Usage Arguments Value Examples

View source: R/word2vec.R

Description

Gets closest words to the searched word

Usage

1
distance(file_name, search_word, num = 15)

Arguments

file_name

trained data file name (MUST be binary)

search_word

search keyword

num

number of closest words

Value

data frame giving closest words and cosine distances

Examples

1
2
3
4
## Not run: 
dist=distance("vec.bin","king",20)

## End(Not run)

mukul13/rword2vec documentation built on May 23, 2019, 8:22 a.m.