from bulstem.stem import BulStemmer
PRE_DEFINED_RULES = ['stem-context-1',
'stem-context-2',
'stem-context-3']
for i, rules_name in enumerate(PRE_DEFINED_RULES, start=1):
stemmer = BulStemmer.from_file(rules_name, min_freq=2, left_context=i)
print(i, stemmer.stem('вторият'))
stemmer = BulStemmer.from_file('stem_rules_context_2_utf8.txt', min_freq=2, left_context=i)
stemmer.stem('вторият')
stemmer.stem('вероятен')
and it gives me
File "D:\data\bulstem test.py", line 8, in from bulstem.stem import BulStemmer
ModuleNotFoundError: No module named 'bulstem'
I have installed it with pip install bulstem and I see it in the site-packages of python folder Why I can not import it?