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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file panphon2-0.3.3-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: panphon2-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 263.4 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24c66d61c4755f97176eefe8f37d485cdffa501a46a28d0252297a492a37a41e
|
|
| MD5 |
c1a2a2f8325009669943c9d2173e9393
|
|
| BLAKE2b-256 |
ccd89912563b0ff574991387f7544c0309805a2fe64758f2c281b6e58333e4e6
|
File details
Details for the file panphon2-0.3.3-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: panphon2-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 260.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dcd23e768a90851ef3628b761c7a03ed33cfd0e2b823004c7a72ea5b1cec8a1
|
|
| MD5 |
1d30a7d0be41caebead7328205cbde8f
|
|
| BLAKE2b-256 |
30f5bd2f9d18f9e021cb36bede43817d581e41049d5a4bdf1e83725934d6b7ab
|
File details
Details for the file panphon2-0.3.3-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: panphon2-0.3.3-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 240.7 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e35ffc18debaad0e9f8105f06a6bead7752497e45472f9ceed2e1be2dd543596
|
|
| MD5 |
76244ab2c40ec1970440e22763430ab4
|
|
| BLAKE2b-256 |
ba88e1cc1bb8a4c3bc06a3c542f466fd0a6eb4cf502fc513bbe6121acae41662
|
File details
Details for the file panphon2-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: panphon2-0.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88eb1d28ea4433f688aa7bd9a3da78d3cbb6636e67ee672c1618e86a32c49097
|
|
| MD5 |
6cb753c3b61f408e1cf6928ea9bb245a
|
|
| BLAKE2b-256 |
2331fbdba0736c205638c979715cab4ae0033b67abd26c5e52e1f07f311fa1d1
|