Skip to main content

SentencePiece python wrapper

Project description

SentencePiece Python Wrapper

Python wrapper for SentencePiece. This API will offer the encoding, decoding and training of Sentencepiece.

Build and Install SentencePiece

For Linux (x64/i686), macOS, and Windows(win32/x64) environment, you can simply use pip command to install SentencePiece python module.

% pip install sentencepiece

To build and install the Python wrapper from source, try the following commands to build and install wheel package.

% git clone https://github.com/google/sentencepiece.git 
% cd sentencepiece
% mkdir build
% cd build
% cmake .. -DSPM_ENABLE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=./root
% make install
% cd ../python
% python setup.py bdist_wheel
% pip install dist/sentencepiece*.whl

If you don’t have write permission to the global site-packages directory or don’t want to install into it, please try:

% python setup.py install --user

Usage

See this google colab page to run sentencepiece interactively.

Segmentation

% python
>>> import sentencepiece as spm
>>> sp = spm.SentencePieceProcessor(model_file='test/test_model.model')

>>> sp.encode('This is a test')
[284, 47, 11, 4, 15, 400]

>>> sp.encode(['This is a test', 'Hello world'], out_type=int)
[[284, 47, 11, 4, 15, 400], [151, 88, 21, 887]]

>>> sp.encode_as_ids(['This is a test', 'Hello world'])
[[284, 47, 11, 4, 15, 400], [151, 88, 21, 887]]

>>> sp.encode('This is a test', out_type=str)
['▁This', '▁is', '▁a', '▁', 't', 'est']

>>> sp.encode(['This is a test', 'Hello world'], out_type=str)
[['▁This', '▁is', '▁a', '▁', 't', 'est'], ['▁He', 'll', 'o', '▁world']]

>>> sp.encode_as_pieces(['This is a test', 'Hello world'])
[['▁This', '▁is', '▁a', '▁', 't', 'est'], ['▁He', 'll', 'o', '▁world']]

>>> proto = sp.encode('This is a test', out_type='immutable_proto')
>>> for n in proto.pieces:
...     print('piece="{}" surface="{}" id={} begin={} end={}'.format(n.piece, n.surface, n.id, n.begin, n.end))
... 
piece="▁This" surface="This" id=284 begin=0 end=4
piece="▁is" surface=" is" id=47 begin=4 end=7
piece="▁a" surface=" a" id=11 begin=7 end=9
piece="▁" surface=" " id=4 begin=9 end=10
piece="t" surface="t" id=15 begin=10 end=11
piece="est" surface="est" id=400 begin=11 end=14

>>> [[x.id for x in proto.pieces], [x.piece for x in proto.pieces], [x.begin for x in proto.pieces], [x.end for x in proto.pieces]]
[[284, 47, 11, 4, 15, 400], ['▁This', '▁is', '▁a', '▁', 't', 'est'], [0, 4, 7, 9, 10, 11], [4, 7, 9, 10, 11, 14]]

>>> proto2 = sp.encode_as_immutable_proto('This is a test')
>>> proto2 == proto
True

>>> for _ in range(10):
...     sp.encode('This is a test', out_type=str, enable_sampling=True, alpha=0.1, nbest_size=-1)
... 
['▁', 'This', '▁', 'is', '▁a', '▁', 't', 'e', 'st']
['▁T', 'h', 'i', 's', '▁is', '▁a', '▁', 'te', 's', 't']
['▁T', 'h', 'is', '▁', 'is', '▁', 'a', '▁', 't', 'est']
['▁', 'This', '▁is', '▁', 'a', '▁', 't', 'e', 'st']
['▁', 'This', '▁', 'is', '▁', 'a', '▁', 't', 'e', 's', 't']
['▁This', '▁is', '▁a', '▁', 'te', 's', 't']
['▁This', '▁is', '▁', 'a', '▁', 't', 'e', 'st']
['▁', 'T', 'h', 'is', '▁', 'is', '▁', 'a', '▁', 'te', 'st']
['▁', 'This', '▁', 'i', 's', '▁a', '▁', 't', 'e', 'st']
['▁This', '▁', 'is', '▁a', '▁', 't', 'est']

>> sp.nbest_encode('This is a test', nbest_size=5, out_type=str)
[['▁This', '▁is', '▁a', '▁', 't', 'est'], 
['▁This', '▁is', '▁a', '▁', 'te', 'st'], 
['▁This', '▁is', '▁a', '▁', 'te', 's', 't'],
['▁This', '▁is', '▁a', '▁', 't', 'e', 'st'],
['▁This', '▁is', '▁a', '▁', 't', 'es', 't']]

>>> sp.sample_encode_and_score('This is a test', num_samples=5, alpha=0.1, out_type=str, wor=True)
[(['▁This', '▁', 'i', 's', '▁a', '▁', 'te', 's', 't'], -3.043105125427246),
(['▁This', '▁', 'i', 's', '▁a', '▁', 'te', 'st'], -2.8475849628448486),
(['▁', 'This', '▁is', '▁', 'a', '▁', 'te', 'st'], -3.043248176574707),
(['▁', 'This', '▁is', '▁a', '▁', 't', 'e', 'st'], -2.87727689743042),
(['▁', 'This', '▁', 'i', 's', '▁', 'a', '▁', 't', 'est'], -3.6284031867980957)]

>>> sp.decode([284, 47, 11, 4, 15, 400])
'This is a test'

>>> sp.decode([[284, 47, 11, 4, 15, 400], [151, 88, 21, 887]])
['This is a test', 'Hello world']

>>> proto = sp.decode([284, 47, 11, 4, 15, 400], out_type='immutable_proto') 
>>> proto.text
'This is a test'

>>> sp.decode(['▁', 'This', '▁', 'is', '▁a', '▁', 't', 'e', 'st'])
'This is a test'

>>> sp.decode([['▁This', '▁is', '▁a', '▁', 't', 'est'], ['▁He', 'll', 'o', '▁world']])
['This is a test', 'Hello world']

>>> sp.get_piece_size()
1000

>>> sp.id_to_piece(2)
'</s>'

>>> sp.id_to_piece([2, 3, 4])
['</s>', '\r', '▁']

>>> sp.piece_to_id('<s>')
1

>>> sp.piece_to_id(['</s>', '\r', '▁'])
[2, 3, 4]

>>> len(sp)
1000

>>> sp['</s>']
2

Model Training

Training is performed by passing parameters of spm_train to SentencePieceTrainer.train() function.

>>> import sentencepiece as spm
>>> spm.SentencePieceTrainer.train(input='test/botchan.txt', model_prefix='m', vocab_size=1000, user_defined_symbols=['foo', 'bar'])
sentencepiece_trainer.cc(73) LOG(INFO) Starts training with : 
trainer_spec {
  input: test/botchan.txt
  .. snip
unigram_model_trainer.cc(500) LOG(INFO) EM sub_iter=1 size=1188 obj=10.2839 num_tokens=32182 num_tokens/piece=27.0892
unigram_model_trainer.cc(500) LOG(INFO) EM sub_iter=0 size=1100 obj=10.4269 num_tokens=33001 num_tokens/piece=30.0009
unigram_model_trainer.cc(500) LOG(INFO) EM sub_iter=1 size=1100 obj=10.4069 num_tokens=33002 num_tokens/piece=30.0018
trainer_interface.cc(595) LOG(INFO) Saving model: m.model
trainer_interface.cc(619) LOG(INFO) Saving vocabs: m.vocab
>>>

Training without local filesystem

Sentencepiece trainer can receive any iterable object to feed training sentences. You can also pass a file object (instance with write() method) to emit the output model to any devices. These features are useful to run sentencepiece on environment that have limited access to the local file system (e.g., Google colab.)

import urllib.request
import io
import sentencepiece as spm

# Loads model from URL as iterator and stores the model to BytesIO.
model = io.BytesIO()
with urllib.request.urlopen(
    'https://raw.githubusercontent.com/google/sentencepiece/master/data/botchan.txt'
) as response:
  spm.SentencePieceTrainer.train(
      sentence_iterator=response, model_writer=model, vocab_size=1000)

# Serialize the model as file.
# with open('out.model', 'wb') as f:
#   f.write(model.getvalue())

# Directly load the model from serialized model.
sp = spm.SentencePieceProcessor(model_proto=model.getvalue())
print(sp.encode('this is test'))

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

sentencepiece-0.1.99.tar.gz (2.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sentencepiece-0.1.99-cp311-cp311-win_amd64.whl (977.5 kB view details)

Uploaded CPython 3.11Windows x86-64

sentencepiece-0.1.99-cp311-cp311-win32.whl (925.9 kB view details)

Uploaded CPython 3.11Windows x86

sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

sentencepiece-0.1.99-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

sentencepiece-0.1.99-cp311-cp311-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

sentencepiece-0.1.99-cp311-cp311-macosx_10_9_universal2.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

sentencepiece-0.1.99-cp310-cp310-win_amd64.whl (977.5 kB view details)

Uploaded CPython 3.10Windows x86-64

sentencepiece-0.1.99-cp310-cp310-win32.whl (925.9 kB view details)

Uploaded CPython 3.10Windows x86

sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (1.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

sentencepiece-0.1.99-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

sentencepiece-0.1.99-cp310-cp310-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

sentencepiece-0.1.99-cp310-cp310-macosx_10_9_universal2.whl (2.4 MB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

sentencepiece-0.1.99-cp39-cp39-win_amd64.whl (977.6 kB view details)

Uploaded CPython 3.9Windows x86-64

sentencepiece-0.1.99-cp39-cp39-win32.whl (925.9 kB view details)

Uploaded CPython 3.9Windows x86

sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (1.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686

sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

sentencepiece-0.1.99-cp39-cp39-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

sentencepiece-0.1.99-cp39-cp39-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

sentencepiece-0.1.99-cp39-cp39-macosx_10_9_universal2.whl (2.4 MB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

sentencepiece-0.1.99-cp38-cp38-win_amd64.whl (977.6 kB view details)

Uploaded CPython 3.8Windows x86-64

sentencepiece-0.1.99-cp38-cp38-win32.whl (926.1 kB view details)

Uploaded CPython 3.8Windows x86

sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (1.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ i686

sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

sentencepiece-0.1.99-cp38-cp38-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

sentencepiece-0.1.99-cp38-cp38-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

sentencepiece-0.1.99-cp38-cp38-macosx_10_9_universal2.whl (2.4 MB view details)

Uploaded CPython 3.8macOS 10.9+ universal2 (ARM64, x86-64)

sentencepiece-0.1.99-cp37-cp37m-win_amd64.whl (977.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

sentencepiece-0.1.99-cp37-cp37m-win32.whl (926.2 kB view details)

Uploaded CPython 3.7mWindows x86

sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (1.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ i686

sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

sentencepiece-0.1.99-cp37-cp37m-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

sentencepiece-0.1.99-cp36-cp36m-win_amd64.whl (990.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

sentencepiece-0.1.99-cp36-cp36m-win32.whl (935.5 kB view details)

Uploaded CPython 3.6mWindows x86

sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (1.4 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ i686

sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ ARM64

sentencepiece-0.1.99-cp36-cp36m-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file sentencepiece-0.1.99.tar.gz.

File metadata

  • Download URL: sentencepiece-0.1.99.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.99.tar.gz
Algorithm Hash digest
SHA256 189c48f5cb2949288f97ccdb97f0473098d9c3dcf5a3d99d4eabe719ec27297f
MD5 6af04027121d138eb12c458a53df937e
BLAKE2b-256 d887b37ebc960d0a85e10785a1a92d796edbd975840bee150a9ae3ba5d7a0250

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f90d73a6f81248a909f55d8e6ef56fec32d559e1e9af045f0b0322637cb8e5c7
MD5 6c64b9a95c88ed3ca769e34b39d0dbdf
BLAKE2b-256 cc07d6951e3b4079df819d76353302fc3e76835252e7e0b6366f96a03d87ea5f

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2d95e19168875b70df62916eb55428a0cbcb834ac51d5a7e664eda74def9e1e0
MD5 6a5e66c576903131baa55eef17b224b7
BLAKE2b-256 e29f35ccc0996432f40b006b1de26c1781ac6a68d9242733d6619bd05285c50e

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db361e03342c41680afae5807590bc88aa0e17cfd1a42696a160e4005fcda03b
MD5 4334cd4454affa2dcbd62eb4f57dc3c7
BLAKE2b-256 4d9d9153942f0e2143a43978bcefba31d79187b7037bed3f85a6668c69493062

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 004e6a621d4bc88978eecb6ea7959264239a17b70f2cbc348033d8195c9808ec
MD5 97ce685362d49888c10a44bb94738045
BLAKE2b-256 9c2aedcc309c271913711a400c4157e91813b949690b3461b2208947baa25d02

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a1abff4d1ff81c77cac3cc6fefa34fa4b8b371e5ee51cb7e8d1ebc996d05983
MD5 0f8e82bc88af788042dbe901c74bc13b
BLAKE2b-256 d91a2cf5643b50b491be9b000aea515c8ca0bd05c66aff374915e054da1777b9

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2a0260cd1fb7bd8b4d4f39dc2444a8d5fd4e0a0c4d5c899810ef1abf99b2d45
MD5 8a0d82178f8b13b811543bd82a91cdf2
BLAKE2b-256 9ff9bb5cd5e7d426f9cb33159063f1dd74b08e23d4e95dc6372d7f2a394e2ef8

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ed6ea1819fd612c989999e44a51bf556d0ef6abfb553080b9be3d347e18bcfb7
MD5 bfd8cf139c642c5512b9ff6c7497cae0
BLAKE2b-256 492ab95df0b8593aee5d9e68b9a9f24e83c69657afb46b24f83b57098d926401

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6d3c56f24183a1e8bd61043ff2c58dfecdc68a5dd8955dc13bab83afd5f76b81
MD5 e446a6be70696b9b7ef86dc622b65d36
BLAKE2b-256 c79ad9921bd4598eec5abc076a2ae651984405c117e4be3510424363da10b8b3

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 14b0eccb7b641d4591c3e12ae44cab537d68352e4d3b6424944f0c447d2348d5
MD5 cfa24756361cefe3dac70d02ea88b008
BLAKE2b-256 218c54bd0e155ec945cd8bcf387c25b2d337b345f2e56939336d71183dc1804f

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fa16a830416bb823fa2a52cbdd474d1f7f3bba527fd2304fb4b140dad31bb9bc
MD5 5a82d4a888bef58592f44a1ee965bc58
BLAKE2b-256 7890064370ab2a7a3ea522189bbc849a3b46ed8fd13f6e14330c168377541f52

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 019e7535108e309dae2b253a75834fc3128240aa87c00eb80732078cdc182588
MD5 9b498b0651cc0a0d242fe6f8afb8330b
BLAKE2b-256 7fe5323dc813b3e1339305f888d035e2f3725084fc4dcf051995b366dd26cc90

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9832f08bb372d4c8b567612f8eab9e36e268dff645f1c28f9f8e851be705f6d1
MD5 7cf0d6a984cd563047f0d95c5cebf10f
BLAKE2b-256 2af6a5611193eeeffa869ec3b9f0e7d48f93bfed006d77fe305a2949a72d263e

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 baed1a26464998f9710d20e52607c29ffd4293e7c71c6a1f83f51ad0911ec12c
MD5 85c537a4ec1ba71d8b52e92268870a56
BLAKE2b-256 02e5bd29c9ce36884e051625d11eb3a11a26bdab9342e218363cc2fb1e9da69f

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be9cf5b9e404c245aeb3d3723c737ba7a8f5d4ba262ef233a431fa6c45f732a0
MD5 114214c471aea5dbe58c62308b8f682b
BLAKE2b-256 cd961e6b6e76671e5a540f41f8cdbc9bee15cce30c76e9b78948a0c581a142aa

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 77d7fafb2c4e4659cbdf303929503f37a26eabc4ff31d3a79bf1c5a1b338caa7
MD5 5730f4fb73a6db1f9df0142e19dad529
BLAKE2b-256 c8274ca09f801842d4e47bf6650f38949f82afa5bfad4ba8aa653ece9e7dcafd

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0eb528e70571b7c02723e5804322469b82fe7ea418c96051d0286c0fa028db73
MD5 967c56f1e459ff645216390635758382
BLAKE2b-256 097fdd8cae1ed66d43bdff9e0d250b806d2217a9c18177f4f65cc3e4bc907308

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 350e5c74d739973f1c9643edb80f7cc904dc948578bcb1d43c6f2b173e5d18dd
MD5 f3348c581c64e19fca85147d64a9ce2d
BLAKE2b-256 31bfdfe0609c840452251f59e4537f5b05ef970410e3cc7195d37f7808a24af9

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-win32.whl.

File metadata

  • Download URL: sentencepiece-0.1.99-cp39-cp39-win32.whl
  • Upload date:
  • Size: 925.9 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c84ce33af12ca222d14a1cdd37bd76a69401e32bc68fe61c67ef6b59402f4ab8
MD5 84649a39d32eecca0eddf383a157e8f5
BLAKE2b-256 df7d712bf8e4e21e07ccb013f5bdb9cf79a47ec60b0ce498eb179b5d7ecfb50f

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ae1c40cda8f9d5b0423cfa98542735c0235e7597d79caf318855cdf971b2280
MD5 cf4122209a6b8d0b49331c112cf33627
BLAKE2b-256 6b224157918b2112d47014fb1e79b0dd6d5a141b8d1b049bae695d405150ebaf

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 18e800f206cd235dc27dc749299e05853a4e4332e8d3dfd81bf13d0e5b9007d9
MD5 8e74574b5845581e0a4609b4da0acd41
BLAKE2b-256 8c43e1f52a0f900be418b38b6bb670d5b73c4ce56eec69f18a1e738f2b325c95

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0b0f55d0a0ee1719b4b04221fe0c9f0c3461dc3dabd77a035fa2f4788eb3ef9a
MD5 ea0f945a14e87338015030dd6a2b3e89
BLAKE2b-256 1f198e49a820602386313cbd894cc0313383c0a0c0d87a50a59d77e138f0a715

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84dbe53e02e4f8a2e45d2ac3e430d5c83182142658e25edd76539b7648928727
MD5 a6fba85e621438a49fcaccd0e9c3c597
BLAKE2b-256 bb282ffee124bc39db4edc4032acf0644428f62e7b8d369242fb43102ebee0e4

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6c030b081dc1e1bcc9fadc314b19b740715d3d566ad73a482da20d7d46fd444c
MD5 95eb6b232fed3aa4b4573a5242d9d54e
BLAKE2b-256 34df8090ada5c176a653ef52f5db354f3e8d8555edbbcc0901d348f1a3bc398b

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 38efeda9bbfb55052d482a009c6a37e52f42ebffcea9d3a98a61de7aee356a28
MD5 ee66636c930261cc574ca8f600547918
BLAKE2b-256 0fb308459c990de944d437f18531cba37564627486edbcf4fba8d06ec8d0189c

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0eaf3591dd0690a87f44f4df129cf8d05d8a4029b5b6709b489b8e27f9a9bcff
MD5 0887ff5f0271c8b888e597dcf893fb29
BLAKE2b-256 a6bec025e93585261bca4d76b545bb50416514b75ad4a5787d121bd548aee756

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-win32.whl.

File metadata

  • Download URL: sentencepiece-0.1.99-cp38-cp38-win32.whl
  • Upload date:
  • Size: 926.1 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b133e8a499eac49c581c3c76e9bdd08c338cc1939e441fee6f92c0ccb5f1f8be
MD5 bf38214c2d6b3f0d2bdb30392112a41d
BLAKE2b-256 da0d2fefed1dd045f7d0e2fb619bd56421668c506f32d95cd5f8cc9692d46a0c

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27b866b5bd3ddd54166bbcbf5c8d7dd2e0b397fac8537991c7f544220b1f67bc
MD5 1d4a2a50f3f71f35648d05d1648da2a5
BLAKE2b-256 c9584fbd3f33a38c9809fedf57bbef7e086b9909d6807148f35d68c0c90896d3

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 fb71af492b0eefbf9f2501bec97bcd043b6812ab000d119eaf4bd33f9e283d03
MD5 76b5e166ac23ca96cd9093eb1efd57b8
BLAKE2b-256 87d9cad463427f9700769cb67c41d803a71fcca0a57a51e20429ff71e0907243

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c6890ea0f2b4703f62d0bf27932e35808b1f679bdb05c7eeb3812b935ba02001
MD5 e1b84c519a50c14c2d1d34a6bca39348
BLAKE2b-256 4957289da748ed46233f7890f233477bca0eaece690d445fcd74bdcc39837b0e

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 445b0ec381af1cd4eef95243e7180c63d9c384443c16c4c47a28196bd1cda937
MD5 9da81d41573144093de50a1b2f7a249c
BLAKE2b-256 9e967f171063dfb3c795a4c300260f7a6a220837ecdbb3476af1d835a5487217

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cfbcfe13c69d3f87b7fcd5da168df7290a6d006329be71f90ba4f56bc77f8561
MD5 8d4c5535aba2908abe8bf3e8657a1255
BLAKE2b-256 75f9b83c7d7634f35746647e74d9910dc44fc85fb8f9054b196dd7f384d580d8

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 85b476406da69c70586f0bb682fcca4c9b40e5059814f2db92303ea4585c650c
MD5 860d1bb4b99d9c8ba2c74393f4a0af66
BLAKE2b-256 e4bd3e3200abe482ecebf7806a45db77876771c844fb074ebf79f54c7b2283ba

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c42f753bcfb7661c122a15b20be7f684b61fc8592c89c870adf52382ea72262d
MD5 40bd1d513e3641231133404112999773
BLAKE2b-256 96c83c1d9ce8f149db100bc775810e51ca58a8d00decb1536ef410ca58f59a9c

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp37-cp37m-win32.whl.

File metadata

  • Download URL: sentencepiece-0.1.99-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 926.2 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.99-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8a321866c2f85da7beac74a824b4ad6ddc2a4c9bccd9382529506d48f744a12c
MD5 49784e4e87582a22a2ea5cca575b903f
BLAKE2b-256 65afacc2db9c32cae176f673130f3faec06fcfb331910de990a9664b1e3504ef

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33e6f690a1caebb4867a2e367afa1918ad35be257ecdb3455d2bbd787936f155
MD5 450e5f7d121c31080caa7acd4fd9adbb
BLAKE2b-256 07d9e74bfb921061d9a75d241397f6b9bca48295ed06f4022d1da693e0a8a0df

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c8843d23a0f686d85e569bd6dcd0dd0e0cbc03731e63497ca6d5bacd18df8b85
MD5 03cb75d3613de68fd0ffc139c5ecb5c2
BLAKE2b-256 3a174f0c73308e15280a6492d976d705f1883de0ab3260991c9284e53984f449

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d0f644c9d4d35c096a538507b2163e6191512460035bf51358794a78515b74f7
MD5 4edb0843c7eb637dcadd18289427dcd0
BLAKE2b-256 756705d5bee5948a4e309d41f733cf6479fbb9d55238770c2c7aae2d8227eab0

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b7b1a9ae4d7c6f1f867e63370cca25cc17b6f4886729595b885ee07a58d3cec3
MD5 47d05ca8f537c65c7568c9426d39c070
BLAKE2b-256 1172942a7b1a261c665c5a1575c4b1b5573c7b8cdda6b97fab797fe4da53325b

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 9ba142e7a90dd6d823c44f9870abdad45e6c63958eb60fe44cca6828d3b69da2
MD5 b80ded06dea9c65f28ad609673c55c26
BLAKE2b-256 6b1fee717bb65c277d9dfe86e46132a0074107a5f48b34362270d0061b3db21e

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp36-cp36m-win32.whl.

File metadata

  • Download URL: sentencepiece-0.1.99-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 935.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.99-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 47c378146928690d1bc106fdf0da768cebd03b65dd8405aa3dd88f9c81e35dba
MD5 77e5c36297a06839250eaa39ca0cd611
BLAKE2b-256 85e185fd4774d949621065da3f0e76c3cc4d1b34da098ada9d37f61f9ae8cd48

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d89adf59854741c0d465f0e1525b388c0d174f611cc04af54153c5c4f36088c4
MD5 f2c9bea9cd6b9dfde6805c74aba90694
BLAKE2b-256 59bfc34bf23221176ece97734e749bc987510b9e4b9f5ad73fce4467197134b2

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6a904c46197993bd1e95b93a6e373dca2f170379d64441041e2e628ad4afb16f
MD5 bb94e9edcc2d72a557029f6d3b64d730
BLAKE2b-256 b62fbb768a81d90b1e2a2e5b6d2d5cab931a2ddca6ca7da9110cf6f5ff93b0e6

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 57efcc2d51caff20d9573567d9fd3f854d9efe613ed58a439c78c9f93101384a
MD5 71ea3baa8ba074a92e7843dd63c63201
BLAKE2b-256 5c1c6f6f7494a9bf4e22664041e030fa3cb797ecbd980d9dea7dc5716e4b8e46

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.99-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for sentencepiece-0.1.99-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 62e24c81e74bd87a6e0d63c51beb6527e4c0add67e1a17bac18bcd2076afcfeb
MD5 0523d39bf64f0222b1190539b0eac28a
BLAKE2b-256 1cf134a5d9166aeb19ca5f5e244a2ce01ffe866b99c8469729fcba7a3c5aa677

See more details on using hashes here.

Supported by

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