Skip to content

Commit

Permalink
version 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaahmadi committed Nov 23, 2020
1 parent 8ed77ed commit 0742ef8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ include klpt/data/test_cases_stem.json
include klpt/data/test_cases_tokenize.json
include klpt/data/test_cases.json
include klpt/data/tokenize.json
include klpt/data/wergor.json
include klpt/data/wergor.json
include klpt/data/kmr-Latn.att
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
<a href="https://gitter.im/KurdishNLP/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge">
<img alt="Documentation" src="https://badges.gitter.im/KurdishNLP/community.svg">
</a>
<a href="https://badge.fury.io/py/klpt">
<img src="https://badge.fury.io/py/klpt.svg" alt="PyPI version" height="18">
</a>
</p>


<!--
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/sinaahmadi/KLPT) [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) [![PyPI version fury.io](https://badge.fury.io/py/ansicolortags.svg)]() [![PyPI status](https://img.shields.io/pypi/status/ansicolortags.svg)](https://pypi.python.org/pypi/ansicolortags/) -->


### Welcome / *Hûn bi xêr hatin* / بە خێر بێن! 🙂


Expand Down Expand Up @@ -247,7 +246,7 @@ The Stem module deals with various tasks, mainly through the following functions
- `correct_spelling`: spell error correction
- `analyze`: morphological analysis

Please note that only Sorani is supported in this version in this module. The module is based on the [Kurdish Hunspell project](https://github.com/sinaahmadi/KurdishHunspell).
The module is based on the [Kurdish Hunspell project](https://github.com/sinaahmadi/KurdishHunspell) for Sorani and the [Apertium project](https://github.com/apertium/apertium-kmr) for Kurmanji. Please note that this module is currently getting further completed and we are aware of its current shortcomings.

```python
>>> from klpt.stem import Stem
Expand All @@ -258,6 +257,10 @@ False
(False, ['ستاندبووت', 'سووتاندبووت', 'سووڕاندبووت', 'ڕووتاندبووت', 'فەوتاندبووت', 'بووژاندبووت'])
>>> stemmer.analyze("دیتبامن")
[{'pos': 'verb', 'description': 'past_stem_transitive_active', 'base': 'دیت', 'terminal_suffix': 'بامن'}]

>>> stemmer = Stem("Kurmanji", "Latin")
>>> stemmer.analyze("dibêjim")
[{'base': 'gotin', 'description': 'vblex_tv_pri_p1_sg', 'pos': '', 'terminal_suffix': '', 'formation': ''}]
```

📖 **Please note that a more complete documentation of the toolkit will be available soon.**
Expand Down
Binary file added dist/klpt-0.1.1-py3-none-any.whl
Binary file not shown.
Binary file added dist/klpt-0.1.1.tar.gz
Binary file not shown.
Binary file added dist/klpt-0.1.2-py3-none-any.whl
Binary file not shown.
Binary file added dist/klpt-0.1.2.tar.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions klpt/stem.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class Stem:
(False, ['ستاندبووت', 'سووتاندبووت', 'سووڕاندبووت', 'ڕووتاندبووت', 'فەوتاندبووت', 'بووژاندبووت'])
>>> stemmer.analyze("دیتبامن")
[{'pos': 'verb', 'description': 'past_stem_transitive_active', 'base': 'دیت', 'terminal_suffix': 'بامن'}]
>>> stemmer = Stem("Kurmanji", "Latin")
>>> stemmer.analyze("dibêjim")
[{'base': 'gotin', 'description': 'vblex_tv_pri_p1_sg', 'pos': '', 'terminal_suffix': '', 'formation': ''}]
```
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="klpt",
version="0.1.0",
version="0.1.2",
description="Kurdish Language Processing Toolkit",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 0742ef8

Please sign in to comment.