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.4.0.tar.gz
(824.2 kB
view details)
Built Distribution
pysem-0.4.0-py2.py3-none-any.whl
(822.9 kB
view details)
File details
Details for the file pysem-0.4.0.tar.gz
.
File metadata
- Download URL: pysem-0.4.0.tar.gz
- Upload date:
- Size: 824.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
849470cff3292fae174f714e0bebcb6149686a910d7642f7f3dfd59625edeb0a
|
|
MD5 |
d52cf2cde4962813fe4fe173611d5e5e
|
|
BLAKE2b-256 |
7c44d9bda42dcab90d1a68f237dfefdb8c5bf4d2ee5c6c6e70a19ae47a5e3dd7
|
File details
Details for the file pysem-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pysem-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 822.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0f9ae9d27c3562e14e14ebe7cd419a3b00a9ab15f32cc5f38b27b4d3771de2da
|
|
MD5 |
0be4720f42519228806c1cefb91c71ff
|
|
BLAKE2b-256 |
de5f9d9af03250f4b1efca2a24b1690af4b4ae28b5a2e47fcb979b42ee860583
|