Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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()
```