Python binding for Phonetisaurus
Project description
Python binding for Phonetisaurus using Cython.
Install
# pypi
pip install sosap
# GitHub
pip install git+https://github.com/seanghay/sosap.git
Phoneticize
from sosap import Model
model = Model("g2p.fst")
model.phoneticize("hello")
Enable Sampling
from sosap import Model
model = Model("g2p.fst")
results = model.phoneticize_sampling("hello", nbest=4)
# => [['h', 'ɛɛ', 'l', 'oo'], ['h', 'ee', '.', 'l', 'oo'], ['h', 'ɛɛ', 'l', '.', 'l', 'ɔɔ'], ['h', 'ɛɛ', '.', 'l', 'oo']]
results = model.phoneticize_sampling("hello", nbest=4, beam=1000, threshold=99.0, pmass=99.0)
# => [['h', 'ɛɛ', 'l', 'oo'], ['h', 'ee', '.', 'l', 'oo'], ['h', 'ɛɛ', 'l', '.', 'l', 'ɔɔ'], ['h', 'ɛɛ', '.', 'l', 'oo']]
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sosap-0.3.0.tar.gz
(397.6 kB
view hashes)
Built Distributions
Close
Hashes for sosap-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cba4dc79d44a9b17059e9a9ba3aee430754e890650d66844deccd348d4a45cf6 |
|
MD5 | 7d9ddb7ad68a0417043b496954ee1d11 |
|
BLAKE2b-256 | 663ac0816b3c1a19207f0c3de580c3eefb8c2cfbaafaef0f771710cd5b1f64e9 |
Close
Hashes for sosap-0.3.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 156b45341439cffc1b10c1f91936f4033ad42aea1160561548db712fa73dbc43 |
|
MD5 | 50bce4cc60e919bb1e861b62430616ea |
|
BLAKE2b-256 | 995bbacfecf8412c66bb1264af61a60bb4c839d04ad1e6fb3309c7966afe667d |
Close
Hashes for sosap-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ebb88e34b1f25613b8b83ad2d6c7968eb3175c98eb4a94ec8fe376315205f2a |
|
MD5 | 5d017cf48d4d0be4b036fc95502dc8c9 |
|
BLAKE2b-256 | 72195d9b2a444566ab539d316aadbb26ba8d8b9c722b454bdc889deb8849dbba |
Close
Hashes for sosap-0.3.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96ae0a1f20891c9af85cf3744a14378faef663e99334aaf3acda4264a9000ef3 |
|
MD5 | ba754279582cd3c402fa33ddb2f3a36c |
|
BLAKE2b-256 | 122f68cc78f58ea553a64055db2bfcab5c9b4c3805a36a91f8645d9e10e8e75b |
Close
Hashes for sosap-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88161220f09c045495412cd3bbc05642c244d17bf7b1176198b6d49fb0cc7d70 |
|
MD5 | 7e9ccd78d7f7d650a9fd6ea7e64152b3 |
|
BLAKE2b-256 | d57e4a40e77a7a62d7b46da12a63d1043811a64e673b66e32b1b39b128a025ea |
Close
Hashes for sosap-0.3.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf30d45876b5301e0ace0ae475e6317846eb6060d2e1f14157db3fc9b7f00397 |
|
MD5 | b66bdc360c1a085cf5049a8695c1085b |
|
BLAKE2b-256 | 850bd248fb2d97eed37f8f60ab20d431ca53e3b4f0d7cbfdc3ae2efff71e419b |
Close
Hashes for sosap-0.3.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaa6813ab7e9c0c1f9bb3e046797408a69d7d401270605f3165264fa9f69e53d |
|
MD5 | 22b0af9dab5c2fbd87090d5a054d0332 |
|
BLAKE2b-256 | e1b347413494e4fe77e002b28bfafa61a03838fccb76e4d0b2ef2813ce268b4a |
Close
Hashes for sosap-0.3.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9907bd7cd28c7110943d8fea8a0ef2932a8bb305696a834b00229cced987524 |
|
MD5 | 0aa4417e1a143fb40e320221022e2181 |
|
BLAKE2b-256 | 7fc19134558c786540b339bf9874d6949cf0bd2af98ca7389a61de4dd8962d8b |
Close
Hashes for sosap-0.3.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 353ac704b8020a1fd3fa1b96b720b8e4636d513431d05717020156038aff5130 |
|
MD5 | 6f180f1886252b1ab950f29e5fd8ac9a |
|
BLAKE2b-256 | 3e7c19292b9ddb4c719147ec39bbf1fb296e932762c3ff5d3032c6b3cea51769 |
Close
Hashes for sosap-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e038e1ee89fa95df42188e6056394ea098a05f2a0c6c31e8851fab2460c59261 |
|
MD5 | 1a2012572520bbf4c9e86f353b91256f |
|
BLAKE2b-256 | d57a5af59586b80fc73641eae948f61cb2764b57bc3b95367f5ae03d934ca5f2 |
Close
Hashes for sosap-0.3.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eee51498c98465b25b86f5ab144ccc1449a115f427b65581dc39d01b358b75d |
|
MD5 | ad2638ed25e4776b93185bae3d4e2bf2 |
|
BLAKE2b-256 | 89435cbe546d1ed452ee2760763043bd472f88bd8c180f861a789c696d5b4fcf |
Close
Hashes for sosap-0.3.0-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86f201e253e6dbc7ae78863be75d72814dac20fea1ed603db1f453f99d053e7a |
|
MD5 | 41d2805b335266c6fc0b9b53139faa6e |
|
BLAKE2b-256 | ff04b9d3f6442a013e1b5cc547465cfef64c4a639f1e36a18bd6a2c938986c8c |
Close
Hashes for sosap-0.3.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0eecceab13867b15ef1e53de8bd0f0ed3352eeb1c0279b500969db9c4046f06 |
|
MD5 | d71540d4652a040118e2795474c2a3c3 |
|
BLAKE2b-256 | debfea3f7b58832424a7f669c885f4748bc256cda296caee47853ba567f39c5c |
Close
Hashes for sosap-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13ce10b4b8bf57480ea0938369cb0b90b55bcbd205a80b36cdc2f07314c4b701 |
|
MD5 | acc0f76c10f25bf94f3dca2724210d0d |
|
BLAKE2b-256 | 560b07fc9bd20d826f33359bfd26571de569ef3cb37c8c5f58cd749a74f19417 |
Close
Hashes for sosap-0.3.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dd2ca0a903ef332f99d12281fd997902251cea6e9a77436d8d88a6bb5d3b1b2 |
|
MD5 | 9e6d864b912e5b806680ebbddc7b6943 |
|
BLAKE2b-256 | 3fd8642b0575e675060efe576d1d7d41b7c115cd14df6858f14912afb8d10f20 |
Close
Hashes for sosap-0.3.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | effd051e0c3ce0d9da9d7f5e5c1c6be3fc73a1d134f647fee6645fcb30b1786b |
|
MD5 | 340e0afe7efe34b57bc512d9ba635824 |
|
BLAKE2b-256 | 610dd714f143f5337ee2e25a8cc746960d54db37569f7bb807041b7ada5df7e4 |
Close
Hashes for sosap-0.3.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75c7d0440c78bd1bfbfe5911019269362cac9208f578e32962d3dd8fe4161a52 |
|
MD5 | 55d8ce15c29ecb1510a7292412ca0e37 |
|
BLAKE2b-256 | 0e23557e4e0015980eb4495e4e7461ce297eaaa5a9a661a106980564be1bdd95 |
Close
Hashes for sosap-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a4aa3a1daefc31fb4a97eeac4136f0188bbdde0202ba3065babd7444530779 |
|
MD5 | 3ae6a4e85a5d4e07712cb537fa2f14ff |
|
BLAKE2b-256 | cc7560832abb91ccbfdd4e1624a728ca26d498a0a3af1439d271235f2c5d8f5b |
Close
Hashes for sosap-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 550a0d23cfb9b5b65268fd82bf26211188cf807a9cf73376719bfa8a7611ec2b |
|
MD5 | 99baca09c4d37adaa607d67e2a8127ce |
|
BLAKE2b-256 | 08de16fd04aa8097a23a399e8752f6c6218555f3b2e778e435366ee2a9e207da |
Close
Hashes for sosap-0.3.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5be7b7a006ff7376f6f6017a1039c8c864f9496648cceca7bea296a97602961 |
|
MD5 | 5fcf6fbf77445b47b1058e9cae984293 |
|
BLAKE2b-256 | a9e0374ff261d6459990b21f057e4978ead0860bb7f72409f5e7a7bf4fa0e6cd |
Close
Hashes for sosap-0.3.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd12177cbaff006601a686e9e72ee540c29027bc6fab2d62ad40ed41a362240c |
|
MD5 | 480a6571b8395902b97ed81d39e32018 |
|
BLAKE2b-256 | 6b11466bf8b642d7179439da14f8e4d700cbe1a5811fd954f98e2a0f2b001e0f |
Close
Hashes for sosap-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f517465bba0625adef7748e469c9c8ce7678c7889a1fc7b86de96ed1256fd0ea |
|
MD5 | 9766ff274c91c11f3a796c119f584033 |
|
BLAKE2b-256 | 4766739b92138563b68445bf7e53b3073bf8e7482ce3f328015f2b6372c49c3a |
Close
Hashes for sosap-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48751d644454347e967e4c4f9ea49e7731b6bd46213acb3e362012293b9a3ed1 |
|
MD5 | b9d3db66b98a6cc8b042ec7fd6bd0248 |
|
BLAKE2b-256 | 0fa4dbbe2926ce51af84a8f35bab09bcb3edcd30f70b45d776bfae3fb4e54780 |
Close
Hashes for sosap-0.3.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d742c361f9d9932ab2ccff820f5a24f39f63dad152375439c7a1d714cafa8e |
|
MD5 | e4bdbd06c3969ace7c7496e63bba6e62 |
|
BLAKE2b-256 | 7a42824fcfbe8762c783034b3be1184929c76b0090e3d8cf7b5a455cf803324f |
Close
Hashes for sosap-0.3.0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 959b4f4685e7eb81e76b6d0e0bb0ef4917a76f563158b4d23eefbe2f4b68cbb3 |
|
MD5 | 97af040ffceb1a85ca8f80af416c5cc8 |
|
BLAKE2b-256 | 16842a8cf467125d6ef9b8ac5d83736a9c4aa345f589f30bf6e46738c25ad2c0 |
Close
Hashes for sosap-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b3742556dca8744030ea32cffaf876c32b6a9e1618f3c07ffb21392b0ca583a |
|
MD5 | fd6fc2c91cb6b13e105991a0172ca474 |
|
BLAKE2b-256 | a2fb41674b81699987044c0c544ce5b3680de7bee582e81611786f49f276844a |
Close
Hashes for sosap-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6727f0c1b85fb7b5fd22604e9920f02fdf4f6edf1518bf6130270f97f1afd215 |
|
MD5 | 0393bdd123b8b9a9e0551effcae66740 |
|
BLAKE2b-256 | f465c8f668cb0017e42193f71804949605f2ca52b0b5bee20884130bba6bc86b |
Close
Hashes for sosap-0.3.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c308bf2b175f3e9fe3b10568d52024dec744f73feebac54a1ec0c1776420ba18 |
|
MD5 | 9c4b1d7c18830dfcdd5bb02ce511c80d |
|
BLAKE2b-256 | 985a06e457f9003595398b56cefac298b571caabfc0772b108e9ce178be97f1b |
Close
Hashes for sosap-0.3.0-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5614d9a2391fe3dd10b7683b8bf1bc3f385a2b52507671c04c38179b38e1e7b0 |
|
MD5 | 23310af77bfd15da3e5c6124f77214f2 |
|
BLAKE2b-256 | 07b3353e63a6c7017b47264e96160b593196c081a4ae67dfff7882274046a6fa |
Close
Hashes for sosap-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51f99a105dc42f5769e3adbe37f37b5bf0c17a30a73403a7cdb66259c4c39689 |
|
MD5 | 1a6d859e04a42bd985aab298f4cbd007 |
|
BLAKE2b-256 | 6b8c2338bde2ad4e75b7f4673f391367bd6322d299ec89a3ff639aeb39b1fd23 |
Close
Hashes for sosap-0.3.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176eadbdceb565f0ee4a07be06d4b8bf696f0167c42d3c7ab1c80ea7327a3f43 |
|
MD5 | 0885f9344f37645b74cfa655597fc14f |
|
BLAKE2b-256 | bcd7e45e1d8f93396b852a1fcc01bedb9ea7496ed652d847b832de4b942b5051 |