Skip to content

On Windows #3

@moxplayer

Description

@moxplayer

Hello,

I am Using Windows 10. Trying to run the greek-stemmer on Python 3.6.0 Anaconda distribution via a jupyter notebook. Followed the tutorial example, and encountered the following error:

from greek_stemmer import GreekStemmer
stemmer = GreekStemmer()

---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-6-133b0049d30f> in <module>()
      1 from greek_stemmer import GreekStemmer
----> 2 stemmer = GreekStemmer()

C:\Users\Tobias Eichinger\Anaconda3\lib\site-packages\greek_stemmer\__init__.py in __init__(self)
     33                                                  flags=re.U | re.I)
     34 
---> 35         custom_rules = self.load_settings()
     36 
     37         self.step_1_exceptions = custom_rules['step_1_exceptions']

C:\Users\Tobias Eichinger\Anaconda3\lib\site-packages\greek_stemmer\__init__.py in load_settings(self)
    338         with open(os.path.join(
    339                   os.path.dirname(__file__), 'stemmer.yml'), 'r') as f:
--> 340             custom_rules = yaml.load(f.read())
    341         return custom_rules
    342 

C:\Users\Tobias Eichinger\Anaconda3\lib\encodings\cp1252.py in decode(self, input, final)
     21 class IncrementalDecoder(codecs.IncrementalDecoder):
     22     def decode(self, input, final=False):
---> 23         return codecs.charmap_decode(input,self.errors,decoding_table)[0]
     24 
     25 class StreamWriter(Codec,codecs.StreamWriter):

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 72: character maps to <undefined>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions