Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows #3

Open
moxplayer opened this issue Mar 6, 2018 · 0 comments
Open

On Windows #3

moxplayer opened this issue Mar 6, 2018 · 0 comments

Comments

@moxplayer
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant