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.5.0.tar.gz
(864.6 kB
view details)
Built Distribution
pysem-0.5.0-py2.py3-none-any.whl
(862.7 kB
view details)
File details
Details for the file pysem-0.5.0.tar.gz
.
File metadata
- Download URL: pysem-0.5.0.tar.gz
- Upload date:
- Size: 864.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6659b99f69e86608352c3b2dda209060e4caf577724f9f8ff4848ea174782a38
|
|
MD5 |
9ae130f3ada604aff015e14a9def53b1
|
|
BLAKE2b-256 |
e9bb5d75054f7ff42d2e0a3c6f5e4fd2e1bed4b209f5d218979dbc43a4bf7dc8
|
File details
Details for the file pysem-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pysem-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 862.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c25afb35ca7ccbdae23b8cd247a3aefd08abf480cfaa1c58b949556324a8d207
|
|
MD5 |
7703e0d21e72ee3563ab01c8dc8b5a78
|
|
BLAKE2b-256 |
dd959c9670a2eba5df78eafbd3d5f234d21cb53d39e069362fbde2e9f22d13f8
|