I have noticed that it has solutions for matching multiple words in a given text, such as below: http://stackoverflow.com/questions/1099985/algorithm-for-multiple-word-matching-in-text
If I want to know exactly the number of appearances of each matched word in the text, my solution is like this:
step 1: using ac-algorithm to obtain the maching words;
step 2: count the number of each word obtained in step 1
is there a faster way?
Thx~