Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

query.words

Word query


Description

Search for words similar to the query.

Usage

query.words(wordvectors, origin, sub = NULL, add = NULL, nres = 5, lang = "en")

Arguments

wordvectors

The vectorized words

origin

The query (character).

sub

Words to be substrated to the origin.

add

Words to be Added to the origin.

nres

The number of results.

lang

The language of the words (NULL if no stemming).

Value

The Words the most similar to the query.

See Also

Examples

## Not run: 
text = loadtext ("http://mattmahoney.net/dc/text8.zip")
words = vectorize.words (text, minphrasecount = 50)
query.words (words, origin = "paris", sub = "france", add = "germany")
query.words (words, origin = "berlin", sub = "germany", add = "france")
query.words (words, origin = "new_zealand")

## End(Not run)

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.