TimKam / compound-word-splitter

A compound word splitter for Python
MIT License
48 stars 15 forks source link

compound_word_splitter.py issue #9

Open Jouca opened 3 years ago

Jouca commented 3 years ago

Hello! When I'm using the module, this error happen in compound_word_splitter.py.

File "DetectGDDailyBadPeople.py", line 63, in my_task split = splitter.split(keyword) File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ [Previous line repeated 27 more times] File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 39, in split return [compound for compound in __concat(left_compound, split(right_compound_1, language))\ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ [Previous line repeated 1 more time] File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 39, in split return [compound for compound in __concat(left_compound, split(right_compound_1, language))\ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ [Previous line repeated 1 more time] File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 39, in split return [compound for compound in __concat(left_compound, split(right_compound_1, language))\ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 39, in split return [compound for compound in __concat(left_compound, split(right_compound_1, language))\ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 39, in split return [compound for compound in __concat(left_compound, split(right_compound_1, language))\ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 37, in split((not split(right_compound_1, language) == '' and not right_compound1_upper) \ File "/home/hexagonteam/.local/lib/python3.6/site-packages/splitter/compound_word_splitter.py", line 35, in split is_left_compound_valid_word = len(left_compound) > 1 and dictionary.check(left_compound) File "/home/hexagonteam/.local/lib/python3.6/site-packages/enchant/__init__.py", line 627, in check val = _e.dict_check(self._this, word.encode()) File "/home/hexagonteam/.local/lib/python3.6/site-packages/enchant/_enchant.py", line 314, in dict_check return dict_check1(dict, word, len(word))

Jouca commented 3 years ago

Screen in logs

image