Skip to main content

No project description provided

Project description

panphon2

PanPhon2 is a more performant version of Python PanPhon being written in Rust (and depending on rspanphon. It does not have all of the functionality of PanPhon, but it should be much faster.

The main class in PanPhon2 is FeatureTable. To instantiate a FeatureTable, the following is sufficient:

>>> import panphon2
>>> ft = panphon2.FeatureTable()

FeatureTable currenly has these methods:

phonemes(str) -> [str] Takes a string in IPA and returns a list of phonemes.

phonemes_to_vectors([str]) -> [[int]] Takes a list of phonemes and returns a list of list of numeric feature values.

word_to_vectors(str) -> [[int]] Takes an IPA string and returns a list of lists of numberic feature values.

feature_edit_distance(str, str) -> float Takes two IPA strings and returns the feature-weighted distance between them.

word_to_bag_of_features Takes an IPA string and returns a vector of the sums of each dimension in the feature vectors corresponding to the phonemes.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

panphon2-0.3.3-cp311-cp311-macosx_11_0_arm64.whl (263.4 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

panphon2-0.3.3-cp310-cp310-macosx_11_0_arm64.whl (260.7 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

panphon2-0.3.3-cp38-cp38-macosx_11_0_arm64.whl (240.7 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

panphon2-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file panphon2-0.3.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for panphon2-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24c66d61c4755f97176eefe8f37d485cdffa501a46a28d0252297a492a37a41e
MD5 c1a2a2f8325009669943c9d2173e9393
BLAKE2b-256 ccd89912563b0ff574991387f7544c0309805a2fe64758f2c281b6e58333e4e6

See more details on using hashes here.

File details

Details for the file panphon2-0.3.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for panphon2-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dcd23e768a90851ef3628b761c7a03ed33cfd0e2b823004c7a72ea5b1cec8a1
MD5 1d30a7d0be41caebead7328205cbde8f
BLAKE2b-256 30f5bd2f9d18f9e021cb36bede43817d581e41049d5a4bdf1e83725934d6b7ab

See more details on using hashes here.

File details

Details for the file panphon2-0.3.3-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for panphon2-0.3.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e35ffc18debaad0e9f8105f06a6bead7752497e45472f9ceed2e1be2dd543596
MD5 76244ab2c40ec1970440e22763430ab4
BLAKE2b-256 ba88e1cc1bb8a4c3bc06a3c542f466fd0a6eb4cf502fc513bbe6121acae41662

See more details on using hashes here.

File details

Details for the file panphon2-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for panphon2-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88eb1d28ea4433f688aa7bd9a3da78d3cbb6636e67ee672c1618e86a32c49097
MD5 6cb753c3b61f408e1cf6928ea9bb245a
BLAKE2b-256 2331fbdba0736c205638c979715cab4ae0033b67abd26c5e52e1f07f311fa1d1

See more details on using hashes here.

Supported by

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