skroutz / greek_stemmer Goto Github PK
View Code? Open in Web Editor NEWA simple Greek stemming library
License: MIT License
A simple Greek stemming library
License: MIT License
GreekStemmer.stem("ΜΟΥΣΑΜΑΔΕΣ") # => "ΜΟΥΣΑΜΑΔ"
GreekStemmer.stem("ΜΟΥΣΑΜΑΣ") # => "ΜΟΥΣΑΜ"
Probably, there is a problem here: giving the words ΑΔΩ and ΑΔΗΣ, the stemming process has as output the stem ΑΔ?
Ειχαμε ενα προβλημα με τις κωδικοποιησεις:
Traceback (most recent call last):
File "E:/Python/classification/scripts/nsk_fit.py", line 31, in
stemmer = gr_stemm.GreekStemmer()
File "χ\Anaconda3\lib\site-packages\greek_stemmer_init_.py", line 35, in init
custom_rules = self.load_settings()
File "χ\Anaconda3\lib\site-packages\greek_stemmer_init_.py", line 340, in load_settings
custom_rules = yaml.load(f.read())
File "χ\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 72: character maps to
Το προβλήμα λυνεται ως εξης ( στη περιπτωση μας):
γραμμη 339, file: init.py:
os.path.dirname(file), 'stemmer.yml'), 'r', encoding="utf8") as f:
irb(main):023:0> "μονόφωτο".stem
=> "ΜΟΝΟΦΩΤ"
irb(main):024:0> "μονόφωτα".stem
=> "ΜΟΝΟΦΩ"
GreekStemmer.stem("ΒΡΑΔΙΝΟΣ") # => "ΒΡΑΔΙΝ" instead of "ΒΡΑΔ"
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.