vi3k6i5 / flashtext

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

can it deal with large keywords list? #78

Open kongbb1 opened 5 years ago

kongbb1 commented 5 years ago

keywordsList = ["java", "python"] keyword_processor.add_keywords_from_list(keywordsList )

if the length of keywordsList is Million level, keyword_processor.extract_keywords() will extracts nothing, how can it deal with Million level keywords list?

vi3k6i5 commented 5 years ago

It should not matter how big the keeyword list is. It should still work as long as you have free ram.

Please check if your keyword list is actually not empty and so is your string.

On Fri, Apr 12, 2019, 6:49 AM kongbb1 notifications@github.com wrote:

keywordsList = ["java", "python"] keyword_processor.add_keywords_from_list(keywordsList )

if the length of keywordsList is Million level, keyword_processor.extract_keywords() will extracts nothing, how can it deal with Million level keywords list?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vi3k6i5/flashtext/issues/78, or mute the thread https://github.com/notifications/unsubscribe-auth/AC-NwlblLjUYA8D-b4NLIWW0DPxQijknks5vf98dgaJpZM4crIx1 .