Giter Site home page Giter Site logo

pymorfologik's People

Contributors

dmirecki avatar

Stargazers

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

Watchers

 avatar

pymorfologik's Issues

Changes proposal

Hi,

Your module received mine interest. I would have a proposal for a couple of updates/changes, the main being:

  1. make it Python2 compliant
  2. change the way the output is generated; I propose not to have a dictionary, but rather a list of tuples, for example:
    Morfologik().get_simple_stem(['Ala ma kota']), would return:
    [('Ala', ['Ala', 'Al', 'Alo']),
    ('ma', ['mieć', 'mój'])
    ('kota', ['kota', 'kot', 'kot', 'kot'])]
  3. Appropriate description changes

In my opinion this should be more in line with the output of the original Morfologik. One could easily convert it to the way your original proposal defined it.

I have forked your repo and would made the necessary changes. Let me know if you are okey with the proposal. If yes, I would make a pull request, otherwise I'd stay in a separate repo to continue the development.
In any case, thanks for your work! ;)

BR,
Adrian

Problem on debian

HI. When I install morfologik on debian server on python 3.6 I have errors:

root@whites:/var/www/dev/var/stemming# pip3 install pyMorfologik
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/site-packages/pip/commands/install.py", line 272, in run
with self._build_session(options) as session:
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 329, in init
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in
_distro = LinuxDistribution()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in init
if include_lsb else {}
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 931, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 126.
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/pip/init.py", line 248, in main
return command.main(cmd_args)
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 329, in init
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in
_distro = LinuxDistribution()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in init
if include_lsb else {}
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/distro.py", line 931, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 126.
root@whites:/var/www/dev/var/stemming#

Do you know what it is?

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.