Python library for manipulating semantic data in linguistics
Project description
PySem: Pysen library for handling semantic data in linguistics
- Current Version: 0.9.dev0
- Concepticon Version: 3.2.0
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 (2024): PySeM. A Python library for handling semantic data in linguistics [Software, Version 0.8]. With contributions by Johannes Englisch. URL: https://pypi.org/project/pysem, Passau: MCL Chair at the University of Passau.
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-1.0.tar.gz
(998.1 kB
view details)
Built Distribution
File details
Details for the file pysem-1.0.tar.gz
.
File metadata
- Download URL: pysem-1.0.tar.gz
- Upload date:
- Size: 998.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2a6f322865f075bda394c7bf348d4f8c4c0bcfa34ac97c6a3d36a020fe5dfb21
|
|
MD5 |
eb608b6099ddfd3e8b7e5bdcf7d77c1b
|
|
BLAKE2b-256 |
6d336882766cff852eb57c2c52c1f089c0f77442a160cfbab0cd6ee166334a53
|
File details
Details for the file pysem-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pysem-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
adcd561f3f368e7fe51e9529d20820c6f762cc287d5d5900ced3748ce3facded
|
|
MD5 |
4cff156efa2582498739b73a766c59b3
|
|
BLAKE2b-256 |
275446ef1405f74eb3416e8544d35aa8576205f54b77bed523be214e2ff92d7a
|