Skip to main content

ASJP conversion and tokenisation utils

Project description

A small library of three functions. ipa2asjp takes an IPA-encoded string and converts it into an ASJP-encoded one. asjp2ipa tries to do the opposite. tokenise takes an ASJP-encoded string and returns a list of tokens.

>>> from asjp import ipa2asjp, asjp2ipa, tokenise
>>> ipa2asjp('lit͡sɛ')
>>> tokenise(ipa2asjp('lit͡sɛ'))
['ly~', 'i', 'c', 'E']
>>> [ipa2asjp(t) for t in ['l', '', 't͡s', 'ɛ']] == tokenise(ipa2asjp('lit͡sɛ'))
>>> asjp2ipa(ipa2asjp('lit͡sɛ')) == lit͡sɛ


MIT. Do as you please and praise the snake gods.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for asjp, version 0.0.0
Filename, size File type Python version Upload date Hashes
Filename, size asjp-0.0.0-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size asjp-0.0.0.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page