All Questions
3 questions
1
vote
1
answer
923
views
R: partial match dictionary terms using grep and tm package
Hi: I have a dictionary of negative terms that has been prepared by others. I am not sure how they have gone about doing the stemming, but it looks like they have used something other than the Porter ...
3
votes
2
answers
2k
views
Searching R corpus for all words ending in "esque"
I am using R's tm package to get word frequencies using the dictionary method. I want to find all words that end with "esque" whether they are spelled "abcd-esque", "abcdesque" or "abcd esque" (since ...
4
votes
1
answer
1k
views
Counter ngram with tm package in R
I created a script for the frequency of words in a document using the object and a dictionary documentTermMatrix in R. The script works on individual words and not on the compound word
es. "foo" "bar" ...