vi3k6i5 / flashtext

Extract Keywords from sentence or Replace keywords in sentences.
MIT License
5.6k stars 601 forks source link

Search on file #38

Closed narsapuramvijaykumar closed 6 years ago

narsapuramvijaykumar commented 6 years ago

Hi Team,

How can we search a keyword on a large file using flashtext, In the documentation I could see only on some sentences but not on any file. If there is any such thing please do redirect me to that page.

Thanks in advance

-Vijay N

vi3k6i5 commented 6 years ago

To search anything less than a 500 keywords on a large file I would recommend using regex. It will be simpler and faster.

If you have more than few 1000 keywords go for FlashText.

To do it with FlashText you can load your file line by line and use keyword extractor function.

vi3k6i5 commented 6 years ago

@narsapuramvijaykumar Closing the thread for now, Feel free to re-open if you still have doubts. Thanks :)