Description Usage Arguments Value Examples
word_bigrams
grabs bigrams for whatever words you want
out of the wordnik database, along with the match strength (weighted
with and without factoring in word length).
1 2 | word_bigrams(key, words, use_canonical = FALSE, min_wlmi = 0, limit = 5,
...)
|
key |
a Wordnik API key. These can be obtained at the Wordnik developer portal. |
words |
a vector of words. |
use_canonical |
whether to use the stemmed, canonical form of the word
(i.e. 'cat', for 'cats') instead of the actual |
min_wlmi |
the minimum (word-length weighted) strength of the similarity between the bigram words. |
limit |
the maximum number of items to return for any one word. |
... |
further arguments to pass to httr's GET. |
a data.frame of 5 columns; word
, first_gram
,
second_gram
, mi
(the strength of the relationship) and
wlmi
(the strength of the relationship, weighted by word length).
1 2 3 4 5 6 | ## Not run:
dog_associations <- word_bigrams(key = "madeupkey", words = "dog")
#mauling and fighting. But also biscuits!
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.