I am working on the text mining area and is new to it. I a file containing a list of words with their corresponding weights as given below:
Malfunction Weight
malformed 1
unformed 0.9
intensive 0.8
malfunctioned 0.7
front 0.6
icu 0.5
injury 0.4
care 0.3
disease 0.2
diagnosis 0.1
Now I want to check each of these words in the list with a document and retrieve the count of occurrence of each term in the document. Can any one tell how to do the same in R?
I have used the tm package but I don't want to do term-document matrix. First I need to find words that match with above and then I need to find the number of occurrence of these words in each document