diff --git a/greek_stemmer/__init__.py b/greek_stemmer/__init__.py index f198cd8..4c63e28 100644 --- a/greek_stemmer/__init__.py +++ b/greek_stemmer/__init__.py @@ -336,7 +336,7 @@ def ends_on_vowel2(self, word): def load_settings(self): custom_rules = "" with open(os.path.join( - os.path.dirname(__file__), 'stemmer.yml'), 'r') as f: + os.path.dirname(__file__), 'stemmer.yml'), 'r', encoding='utf8') as f: custom_rules = yaml.load(f.read()) return custom_rules