explosion / sense2vec

🦆 Contextually-keyed word vectors
https://explosion.ai/blog/sense2vec-reloaded
MIT License
1.63k stars 240 forks source link

ignore_case option for get_best_sense and get_other_senses does not check for lowercase #138

Closed chanind closed 3 years ago

chanind commented 3 years ago

The ignore_case option for get_base_sense and get_other_senses claims that: "ignore_case (bool): Check for uppercase, lowercase and titlecase." However, ignore_case does not check for lowercase - it only checks for the version of the word passed in, upper-case, and title-case (https://github.com/explosion/sense2vec/blob/master/sense2vec/sense2vec.py#L250). It should also lower-case the word so that it correctly ignores case.