Wiki

Clone wiki

r-text-tools / getWordAssoc

Takes a text blob and plots frequency Digital Approaches to Bibliography and Book History

Rare Book School - University of Virginia - Carl Stahmer and Benjamin Pauley

USAGE:

text <- the text string you want to calculate
token <- the token you to use as your seed. The
system will find all words that appear
next to this wor.
threshold <- The corrolation limt. 0 - 1

getWordAssoc(xmltext, token, corr)

examples:

r> getWordAssoc(xmltext, "wishaw", 0.7)

This work is licensed under a Creative Commons Attribution 4.0 International License.

NOTE: THERE IS STILL A MAJOR BUG IN THIS CODE! IT RETURNS A LIST OF ALL ASSOCIATED WORDS, BUT IT DOESN'T RETURN AN APPROPRIATE RANKING NUMBER SO YOU KNOW WHICH ONES WERE MATCHED THE MOST

Updated