Skip to main content

PySem: Python library for handling semantic data in linguistics

Project description

PySem: Pysen library for handling semantic data in linguistics

Build Status PyPI

Included 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', 's:bone; s:foot; s:hand', 3),
 ('arm', 'hand', 's:bone; s:foot; s:hand', 3),
 ('arm', 'shin-bone', 's:bone; s:foot; s:hand', 3),
 ('arm', 'ankle', 's:bone; s:foot', 2),
 ('arm', 'bone', 's:bone; s: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.3.0]. With contributions by Johannes Englisch and Robert Forkel. 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.3.0.tar.gz (999.0 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.3.0-py2.py3-none-any.whl (995.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pysem-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e074948429b5daa0a3ecdc92282a503a43a1af75ba77a612ab2c048dc94144a3
MD5 111718b426bfe557d6ce2208789702e5
BLAKE2b-256 8886aab786956541522e85ce988c7dd382be05fc86bc09540afb91e736a65238

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysem-1.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 995.0 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.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd94496ae9f6eddc8c0630db76c0e0a65a148464f480b30d717fe2e5268434e4
MD5 f0e32e2ee19c2e7df9a53857fce4a9e3
BLAKE2b-256 f06816cebf0494dc54266c51bc8e33a6afc18b88133eee74025583670b4401ef

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