Closed devashishd12 closed 6 years ago
Hi @vi3k6i5, I think there's a bug in the way keywords are removed from dict. Here's a snippet to reproduce the error:
from flashtext import KeywordProcessor kp = KeywordProcessor() kp.add_keywords_from_dict({'computer vision': ['computer vision', 'cv']}) print(kp.extract_keywords("computer vision")) print(kp.extract_keywords("cv")) kp.remove_keywords_from_dict({'computer vision center': ['computer vision center']}) print(kp.extract_keywords("computer vision")) print(kp.extract_keywords("cv"))
fixed in version 2.7 . Thanks for reporting 👍
Hi @vi3k6i5, I think there's a bug in the way keywords are removed from dict. Here's a snippet to reproduce the error: