This is a Python implementation of Skroutz's Ruby Greek stemmer.
To use simply do:
>>> from greek_stemmer import GreekStemmer >>> stemmer = GreekStemmer() >>> stemmer.stem('ΘΑΛΑΣΣΑ')
To install using pip issue the following command:
pip install greek-stemmer
In order to run the tests, you should firstly install all the necessary dependencies:
pip install -r requirements.txt
Tests can be run using the following command:
python -m pytest tests/