Python library for manipulating semantic data in linguistics
Project description
PySem: Pysen library for handling semantic data in linguistics
Usage Examples
Retrieve the sense data assembled by S. A. Starostin in the STARLING software package and search for similar words:
>>> from pysem.sense import Sense
>>> sns = Sense()
>>> sns.similar('arm')
[['arm', 'calf of leg', 'sense-bone; sense-foot; sense-hand', 3],
['arm', 'hand', 'sense-bone; sense-foot; sense-hand', 3],
['arm', 'shin-bone', 'sense-bone; sense-foot; sense-hand', 3],
['arm', 'ankle', 'sense-bone; sense-foot', 2],
['arm', 'bone', 'sense-bone; sense-foot', 2]]
Map data to the most recent version of the Concepticon project:
>>> from pysem import to_concepticon
>>> to_concepticon([{"gloss": "Fuß", pos: "noun"}], language="de"}])
{'Fuß': [['1301', 'FOOT', 'noun', 19]]}
How to Cite
List, Johann-Mattis (2021): PySeM. A Python library for handling semantic data in linguistics. Version 0.4.0 URL: https://github.com/lingpy/pysem/, Leipzig: Max Planck Institute for Evolutionary Anthropology.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysem-0.6.0.tar.gz
(902.4 kB
view hashes)
Built Distribution
pysem-0.6.0-py2.py3-none-any.whl
(901.6 kB
view hashes)
Close
Hashes for pysem-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edfd096a39407148b71bb1df1e8dfee65bc4043376b13f969ab44e57775a04da |
|
MD5 | a61d5156957abc1d4f4ad352e1101a95 |
|
BLAKE2b-256 | 972a5231c8d874225f425e1881e15cb61201366900b856362032ff6486d9be0f |