Skip to main content

PySem: Python library for handling semantic data in linguistics

Project description

PySem: Pysen library for handling semantic data in linguistics

  • Current Version: 1.2.2
  • Concepticon Version: 3.4.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 (2026): PySeM. A Python library for handling semantic data in linguistics [Software, Version 1.2.2]. With contributions by Johannes Englisch. URL: https://pypi.org/project/pysem, Passau: MCL Chair at the University of Passau.

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-1.2.2.tar.gz (997.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysem-1.2.2-py2.py3-none-any.whl (993.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pysem-1.2.2.tar.gz.

File metadata

  • Download URL: pysem-1.2.2.tar.gz
  • Upload date:
  • Size: 997.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pysem-1.2.2.tar.gz
Algorithm Hash digest
SHA256 f6ed22f1577b4eb90e8fdc69bf7fa3c622ecec4a2ef1cad8cc69a04a74593656
MD5 53190602d25a40ec3cf85b7b59293b3c
BLAKE2b-256 5d69028205abe6cfb81a4a6e83448875a5e1e9226a653dc874a29f62e8378fa8

See more details on using hashes here.

File details

Details for the file pysem-1.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pysem-1.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 993.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pysem-1.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40c8a3022c93cdf845b386794061de1fa2e0ea4b6152570d81322de4c77e37bb
MD5 adda3e44624a538253703e72b40e0016
BLAKE2b-256 66bccdda000ce3c748e170f7fb39e04dad539360dc56dd41694cc15a56d382d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page