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
Release history Release notifications | RSS feed
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 details)
Built Distribution
pysem-0.6.0-py2.py3-none-any.whl
(901.6 kB
view details)
File details
Details for the file pysem-0.6.0.tar.gz
.
File metadata
- Download URL: pysem-0.6.0.tar.gz
- Upload date:
- Size: 902.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
159e386dcd8c7da811b852368763d4071240fa00b64cc7e6a229e2367484bdaf
|
|
MD5 |
ae7e54ff1c6a9570284c6013992dfdbd
|
|
BLAKE2b-256 |
4b07be2a728d2cd9506e268e8db3cb64b2315e972f15fdc093f27744f58b40ae
|
File details
Details for the file pysem-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pysem-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 901.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
edfd096a39407148b71bb1df1e8dfee65bc4043376b13f969ab44e57775a04da
|
|
MD5 |
a61d5156957abc1d4f4ad352e1101a95
|
|
BLAKE2b-256 |
972a5231c8d874225f425e1881e15cb61201366900b856362032ff6486d9be0f
|