alup / python_greek_stemmer Goto Github PK
View Code? Open in Web Editor NEWPython implementation of Greek Stemmer (based on Skroutz's Ruby version).
Python implementation of Greek Stemmer (based on Skroutz's Ruby version).
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>
After installing using python setup.py install
when i try to run your tests i get the following error :
Traceback (most recent call last):
File "test_stemmer.py", line 5, in
from greek_stemmer import GreekStemmer
ImportError: No module named greek_stemmer
any suggestions ?
What's the license of this? :)
:)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.