Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kszucs/pyspejd
Cython wrapper for libspejd
https://github.com/kszucs/pyspejd
Last synced: about 1 month ago
JSON representation
Cython wrapper for libspejd
- Host: GitHub
- URL: https://github.com/kszucs/pyspejd
- Owner: kszucs
- Created: 2014-02-17T11:51:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-17T10:15:32.000Z (over 10 years ago)
- Last Synced: 2024-05-02T01:56:51.660Z (7 months ago)
- Language: C++
- Homepage:
- Size: 234 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PySpejd
Python wrapper for [Spejd (libspejd)](http://zil.ipipan.waw.pl/Spejd/), a tool for partial parsing and rule-based morphosyntactic disambiguation
### Requirements:
- libspejd >= 1.40b
- optional Cython >= 0.20### Install:
python setup.py build_ext --inplace
#### With pip:
pip install git+https://github.com/kszucs/pyspejd.git
### Usage
```python
import pyspejd
spejd = pyspejd.Spejd('./examples/config.ini')
text = u'Warszawa jest ośrodkiem naukowym, kulturalnym, politycznym oraz '
u'gospodarczym na skalę europejską.'result = spejd.process_data(text.encode('utf-8'))
print spejd.get_final_report()
```