How are you? Hope well. Just a quick question. I have a file which contains abstracts (small texts) and i am looking for certain keywords and their frequency. These keywords are provided from another file. I was thinking to read the keyword file first and the perform a scan on the abstract file. However, if i find a keyword, i would like to find the word before and after as well. Any thoughts of how i can do that?
Keyword_file looks like this:
abstract_file looks like this:
hello, my name is george. How are you? Today
i am not feeling very well. I consider myself to be
so i want to find the words 'george' and 'myself' as well as 'is','how' and 'consider', 'to'.
Any suggestions? :?: