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

https://github.com/red-rocket-dev/pyplwnxml

Parser for plwnxml (format of polish wordnet, słowosieć)
https://github.com/red-rocket-dev/pyplwnxml

nlp python python-3 slowosiec wordnet

Last synced: 6 months ago
JSON representation

Parser for plwnxml (format of polish wordnet, słowosieć)

Awesome Lists containing this project

README

          

pyplwnxml
=============================

Parser for plwnxml (format of polish wordnet, słowosieć, http://nlp.pwr.wroc.pl/plwordnet/download/).

-----

Usage example
----------------------------
::

from pyplwnxml import PlwnxmlParser

WORDNET_LOCATION = "plwordnet-3.0.xml"

if __name__ == "__main__":
wordnet = PlwnxmlParser(WORDNET_LOCATION).read_wordnet()
for lu in wordnet.lemma("zły")[0].synsets[0].lexical_units:
print(lu.name)

Will print::

zły
niedobry

Installation
----------------------------
::

pip install pyplwnxml

----

Tested with Słowosieć 3.0 and Python 3.6.1