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.1
  • 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 (2025): PySeM. A Python library for handling semantic data in linguistics [Software, Version 1.1]. 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.1.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.1-py2.py3-none-any.whl (993.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pysem-1.2.1.tar.gz
Algorithm Hash digest
SHA256 ef264d677ae61affee9167598cee8de13916cda5ee328469814c2cbec6c19462
MD5 806efac35058ceaf29cd945705db6d90
BLAKE2b-256 a7ac74f69249688af3a14208fc0ea3fad34af9f0d9a6c15c35e1d0608e0ca4bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysem-1.2.1-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.1.0 CPython/3.13.2

File hashes

Hashes for pysem-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c1013cafa1cf86eaa0624fdd8635bc25fd7d80af17fac742e3afce24cc34c55a
MD5 a81fb4f8306936d49f1e6e2695c3f908
BLAKE2b-256 f41ff7c1b111a748a080bf585dc21b8d8ccd77e2047f2ce6ed8fec22828dc8d0

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