Closed nfrancioso closed 2 years ago
my understanding of the algo is that it returns longest match first
kp = KeywordProcessor()
kp.add_keyword("手机") kp.add_keyword("苹果手机") kp.add_keyword("vivo") text = "手机vivo" words = kp.extract_keywords(text) print(words)
not a bug. longest match first is returned
A single word keyword is not being found when its part of a multi-word keyword that is also part of the keyword list. (not sure how to explain this or if it makes sense but please see example below) Thanks.
'Management' should be found in the text but it is not.