A spaCy package for the Rust tokenizations library
Project description
spacy-alignments: Align tokenizations for spaCy + transformers
A spaCy package for Yohei Tamura's Rust tokenizations library with Python bindings.
Installation
pip install -U pip setuptools wheel
pip install spacy-alignments
If no binary wheel is available for your platform, you will need to install
Rust in order to build
spacy-alignments
from source.
spacy-alignments vs. pytokenizations
The spacy_alignments
module is a drop-in replacement for tokenizations
:
import spacy_alignments as tokenizations
a2b, b2a = tokenizations.get_alignments(["å", "BC"], ["abc"])
assert a2b == [[0], [0]]
assert b2a == [[0, 1]]
The only difference between this package and the original
pytokenizations
is that it
switches the build system to setuptools-rust
to make it easier for us at
Explosion to build source and binary packages for a wider range of platforms.
Bug reports and other issues
Please use spaCy's issue tracker to report a bug, or open a new thread on the discussion board for any other issue.
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
Built Distributions
Hashes for spacy_alignments-0.9.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb04d06cf417f5df56a80f1a54f9eedaab3e4165b4fcb50bf7c3680eb549fc6 |
|
MD5 | 34be7443b391c719946e9cc16da48fa1 |
|
BLAKE2b-256 | a41e7ab97f0ec2954d0a4f2c8c39959942dc9ed19f7dade1aa7b98354db2d9a8 |
Hashes for spacy_alignments-0.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35fa7444dd7117e45cfca51335a4eb737627c9a9dfd191c8291cf9f5fb0557ae |
|
MD5 | d97c57b419da056433e837dafe4f8a59 |
|
BLAKE2b-256 | c3a610169bb5f58edf5944187417fae6c72131e9e16e5924bac6bed78f1b5720 |
Hashes for spacy_alignments-0.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36825157fbd7b96e6bfeb3a0076dd36d8d1f560624b824c2873d10a1a0d70fd2 |
|
MD5 | 5138617fee25e7756e6ba8fa74490119 |
|
BLAKE2b-256 | 7a9a5c78a4a25f6e4f22c623f5f0e71328bec2b1024e4486d7fb054a2a3fe7ec |
Hashes for spacy_alignments-0.9.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20644e71b2d685fc31013ac8a806224a9de4a4dd2c03ded621a95a95efc6000d |
|
MD5 | e4da6957b44c3e56b8ae4045a2f17464 |
|
BLAKE2b-256 | e7f4ad5468109f97c28e000e02e97905118bbdf311dc8fae95d22326cab5a7c0 |
Hashes for spacy_alignments-0.9.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5a5d7b65f9c7dfbf9c9ac1d1a2ab3e1cdcfc93a1f52cef0d666c29b416fe7d |
|
MD5 | 4a6368579f6bce52684d1bbe8c6b414c |
|
BLAKE2b-256 | 9baf9afbc25eb7014e4da37bd22d98c0bc83807680cdb2bcbeec45e5f88a0544 |
Hashes for spacy_alignments-0.9.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a58ce17fd919c3719529df17c34f82bbaec600130655294aa05effd2308baaeb |
|
MD5 | c633f4a846f9194751601a8b2b62453a |
|
BLAKE2b-256 | b1e48da85ebcd3d3871a98c5f2ff92a33815741fa35643d8d39cd324c7d20159 |
Hashes for spacy_alignments-0.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1fe1ad0bcc9f365746c4031d0523b52da79dd87f9c0e6e977c6c8fd4032a82b |
|
MD5 | 151d4d0096bf3114f246b3345aa65f37 |
|
BLAKE2b-256 | d6714fefc684ea4a61725593e7bde7c54d1fd0235b4f2e52f4fc4fc2da2d1453 |
Hashes for spacy_alignments-0.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dccd315b0d083dfae0c82f845e647ead16f04d2ec1c15c9fc05281d6ae00cf7 |
|
MD5 | 312c793bde6e35e3a1f2398422c964a5 |
|
BLAKE2b-256 | be80876a36f09fedbc188b97e9bfe7865a1ebf11020ca49071c8e5180427cb59 |
Hashes for spacy_alignments-0.9.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb9cc7efe494468e61038f91269d66ca9a4aa3395250f60eb942368c19a6e11 |
|
MD5 | a358fbaaf23394faaf152c5ad403f10f |
|
BLAKE2b-256 | 06d41cf802fb0f68fa48be2f98ca76d2a032809380dc8375e18343d8aefebe7b |
Hashes for spacy_alignments-0.9.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285babdffd85840164446fbc40435c57510d4b90f12e893bbecb55c690b23c51 |
|
MD5 | 5b761bc015cc0462113ec4f66ffe88b5 |
|
BLAKE2b-256 | ad5eed5d9d7d29df064261f75501c1161082c360a40b801618d12aa46c5dbd82 |
Hashes for spacy_alignments-0.9.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b42ba12222c1ea0e659ae5834e494f25492e7649425d0cef65aa8948818dd1 |
|
MD5 | a0f9d37ab40e84e75e81f0528fed231f |
|
BLAKE2b-256 | b59ab32f031e26b1a695511043ff203cb19f8f94cd32529f7d85b9b4a207d3f7 |
Hashes for spacy_alignments-0.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c152d78b25a88487145a6bb82aefc938e503c28c4249fd723390409deeb3f04 |
|
MD5 | 07392a68a8ea3c5964883a81f070ef28 |
|
BLAKE2b-256 | 76ea44ffa5dbe1aa412cc274472d5b3dd3171ae2ea6aa2168fc21afa9038b7a9 |
Hashes for spacy_alignments-0.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd0279610d5047205c8d10368a600fa6b9c6d995efdfb093708d54c9ad7efc1f |
|
MD5 | 0b395a3235d49cd7d40e0c7e5a64bace |
|
BLAKE2b-256 | a06254a73847785d800892be872783739a6b993bc9df962bff378a61e7b76c3c |
Hashes for spacy_alignments-0.9.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12402e2eea5c4b21b197c43c9bed2629ab1324ae46bd92f7b8e4630dec14ea3a |
|
MD5 | 868a79fdc01973a1ef1c874082f1357e |
|
BLAKE2b-256 | c8a5748dd8b28361de08904163b1193f65488c97fbf98253b0829f60d3bdbb73 |
Hashes for spacy_alignments-0.9.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d9b8da21d7924f4b5e6cfd89234b27f7939c4211c0fa866b3dde4110b96dd6 |
|
MD5 | 8af6834022addb4cd5b495a9c8186b48 |
|
BLAKE2b-256 | 8f6a3a1d7c00f48f04b395fcadc95081a3472b8b335db3a0e505771449905265 |
Hashes for spacy_alignments-0.9.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b3cd95356f27fa4dc41448e131b6b44eb065d11e4c4c4fbcbfc0ef20ad4e513 |
|
MD5 | 71c845cd3bde0599aad20dc1e0730b78 |
|
BLAKE2b-256 | e4553d5352076bd1bb1051de2eec314e83444128fc8e2c2b4cc92639c049907b |
Hashes for spacy_alignments-0.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62c1d70bfb6fc12ce2a7a92f1c1725abaa87a0e06bc2c4bf2b3b5b43f5a3f59 |
|
MD5 | 1f086f6afd5bc728148f2e49e3fb2380 |
|
BLAKE2b-256 | 2ee11b34c6573dda835aad73d44afdadc289350f2fdd2d535b0011d3f359c143 |
Hashes for spacy_alignments-0.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f36d49431d6d6067c57caaabe1aca501bbe8df39c9ffa92daf386bdc239074 |
|
MD5 | 92b91c6bec7c7295171fa787694e8077 |
|
BLAKE2b-256 | 20354dcd5fb821a43ba49457faa2c9221599ae2220c74b38f66e8f8c357c7263 |
Hashes for spacy_alignments-0.9.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10ecfb8e42adf0d39fec87bed9f344e0f85be893d2258d0b7d81134d5b110525 |
|
MD5 | fb15b5f2aa34e0ccee126ac87aabd353 |
|
BLAKE2b-256 | 11828ae6b2b7a30f0d39957a23c79ecc4dcec4d625bf19e1c11595bd987a5fce |
Hashes for spacy_alignments-0.9.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 992e2768b6f2432922b616ca893fe7a66d3e865cf457352dc250bc16ab016633 |
|
MD5 | e2c3e6cbad3584c4625be06314222651 |
|
BLAKE2b-256 | 38e213cf5adf45929c5794b8511a3bdd03697a835c53fe2f7082c27156b7a831 |
Hashes for spacy_alignments-0.9.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d8081654b310390aa037c6caee70fdf6825c4474f84dbe42d58cc44874c9f5 |
|
MD5 | 1ced2c9449fa7c816ec2a9991ee623d2 |
|
BLAKE2b-256 | 20bebdc9d3d7632b6e7a6888263c02e9020fee39f9a04f5514eef0f0fe192262 |
Hashes for spacy_alignments-0.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4582d242808c4c5c44380e3543e6a53225bf6db2ae9b4d9d58e2a671442e1b60 |
|
MD5 | e16dbf5d827b51c459b43c60fe0adfa8 |
|
BLAKE2b-256 | ce069c6ab07658f1dfc73863fdc62c8f4e15db369cb82840c448a35a5182b6fe |
Hashes for spacy_alignments-0.9.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c913af4e0e3da4acbd9265697fb86a2c8370b2e70d984ef8f7238efa2922ec9 |
|
MD5 | 4ad3f1289ecdde8c702e6effcff7357b |
|
BLAKE2b-256 | bce17ef5be9e4c31d748d168f02ad2a60c1c156d1c5208fac75ee3b65acb5810 |
Hashes for spacy_alignments-0.9.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 365c44a5f76d789af82d174235333f31cf0e151c28d56b886a1223a961b47ba4 |
|
MD5 | e5cd1b357fcf239f0fb9c29565ea0391 |
|
BLAKE2b-256 | 46798838799dbccf4d5ef1ef099c04784ee097b4ac54379b05cc81dc84ad3287 |
Hashes for spacy_alignments-0.9.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e68df531d177d5b07ee9396f22c085e54685a6c4ab349f0ce5c8f55b54dde0 |
|
MD5 | f6e47753b497d42f0d7d3f8e8ec416ef |
|
BLAKE2b-256 | f73bc6ad7cb05ebe1b2d40d72a55eb6eecf4242773af8d5755daa9adc065158a |
Hashes for spacy_alignments-0.9.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c70df885671f75ed33371984ac156e5002c1245f0c64eb5a0b2aef20805b835b |
|
MD5 | a3b7721dff4ab3470cb377a762879de1 |
|
BLAKE2b-256 | b993fa995a419c4b09d06532baa152227233e25a71db697a7c7e3b8004e6ecf7 |
Hashes for spacy_alignments-0.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b97b879d614f1c37f330c0c0c2fcffacd6bf5322473169748aa76e4acbe484 |
|
MD5 | 81ab4fa2ee6a7bdc5a6aed465605f7b1 |
|
BLAKE2b-256 | a5ab5b13f49414b18c6e8791e6f04c0980c686c7f9b6b013d2afab37626ef236 |
Hashes for spacy_alignments-0.9.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd8a59fe7d75a61d303e8a290cba53b82d85f3bfecaf267343ef47df5555e9d |
|
MD5 | 92def4671b7993d12ed1d9311b21ac40 |
|
BLAKE2b-256 | 08e65dd8be0d2590e8e6d56fda008ffc6777b93bbe534c1dacdf2df11667ea79 |
Hashes for spacy_alignments-0.9.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1264e21f7fbba166ed02c8b495e99f2d92e43335a476f4afa498c02e32566b4e |
|
MD5 | 17866258a2993fb39592a76ec2ac91dd |
|
BLAKE2b-256 | a592d3ed254ce8ed9d0b73ba38ee83e94cb7567bddd3f3c658439529a18897ac |