I'm looking for a fast solution which allows me to find predefined phrases (1-5 words) in a (not big) text.
The phrases can be up to 1000. Suppose, the simple find()
function is not a good solution.
Could you advise what should I use? Thanks in advance.
Update Why i don't want to use bruit force search:
- I believe, it is not fast enough.
- Text can have some inclusions in the phrases. I.e. phrase can be Bank America, but text has bank of America.
- Phrases can be a little bit changed - apostrophes, -s ending etc.