GithubHelp home page GithubHelp logo

python_greek_stemmer's People

Contributors

alup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

python_greek_stemmer's Issues

On Windows

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>

No module found

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.