Hi,
I would like to tag terms according to keywords in a dictionary plus the words left and right of the keywords. I added regular expressions "([a-zA-Z]+ )*" + <keyword> + "( [a-zA-Z]+)*" but the result is irregular. Sometimes just the keyword is tagged and sometimes several other words left or right, and sometimes both. Is there any possibility to control this?
If the sentence starts with the keyword then no other word left of the keyword should be tagged. So, just within a sentence the tagging plus 3 words left and right should be done.
Any help is appreciated// thanks