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.98.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.98-cp311-cp311-win_amd64.whl (977.8 kB view details)

Uploaded CPython 3.11Windows x86-64

sentencepiece-0.1.98-cp311-cp311-win32.whl (924.9 kB view details)

Uploaded CPython 3.11Windows x86

sentencepiece-0.1.98-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.98-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.98-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.98-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

sentencepiece-0.1.98-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.98-cp310-cp310-win_amd64.whl (977.8 kB view details)

Uploaded CPython 3.10Windows x86-64

sentencepiece-0.1.98-cp310-cp310-win32.whl (924.9 kB view details)

Uploaded CPython 3.10Windows x86

sentencepiece-0.1.98-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.98-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.98-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.98-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.9+ x86-64

sentencepiece-0.1.98-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.98-cp39-cp39-win_amd64.whl (977.8 kB view details)

Uploaded CPython 3.9Windows x86-64

sentencepiece-0.1.98-cp39-cp39-win32.whl (924.8 kB view details)

Uploaded CPython 3.9Windows x86

sentencepiece-0.1.98-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.98-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.98-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.98-cp39-cp39-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.9macOS 10.9+ x86-64

sentencepiece-0.1.98-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.98-cp38-cp38-win_amd64.whl (977.9 kB view details)

Uploaded CPython 3.8Windows x86-64

sentencepiece-0.1.98-cp38-cp38-win32.whl (925.0 kB view details)

Uploaded CPython 3.8Windows x86

sentencepiece-0.1.98-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.98-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.98-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.98-cp38-cp38-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

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

Uploaded CPython 3.8macOS 10.9+ x86-64

sentencepiece-0.1.98-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.98-cp37-cp37m-win_amd64.whl (977.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

sentencepiece-0.1.98-cp37-cp37m-win32.whl (925.1 kB view details)

Uploaded CPython 3.7mWindows x86

sentencepiece-0.1.98-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.98-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.98-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.98-cp37-cp37m-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

sentencepiece-0.1.98-cp36-cp36m-win_amd64.whl (991.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

sentencepiece-0.1.98-cp36-cp36m-win32.whl (934.0 kB view details)

Uploaded CPython 3.6mWindows x86

sentencepiece-0.1.98-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.98-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.98-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.98-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.98.tar.gz.

File metadata

  • Download URL: sentencepiece-0.1.98.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.98.tar.gz
Algorithm Hash digest
SHA256 947cf0a4b8a480510d560a922f8256f34e93984a86cf870be4d05731f59fb28d
MD5 456d2110b6eca5bca20740133fe1cf91
BLAKE2b-256 30eab6cc06f178c4ad88f265011d7a2649a7d5278a88a7afa63cda9344513ea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 05b4eecbece0606883cd81ed86bb3c619680bb570b997b236533ec854d64a575
MD5 28c941922aa29f5258aa112cdd1f3246
BLAKE2b-256 a9bfc81ffe9dcde1ea255343b218d8c20b2add15f4bf0d2a0c91aff332d6c3c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.98-cp311-cp311-win32.whl
  • Upload date:
  • Size: 924.9 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fcf100268cefe1774794b18cbaf3065e2bf988f168a387973eb1260d51198795
MD5 43f506168ed132c51d876363cf63d6c3
BLAKE2b-256 a2ac4b8179922d73907d31bc5b2852d842bd5a8407ff31f234c3d6e8dc6ab0a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 558a373a8660bdff299d6c133c2a4f4fb0875e9e6fafe225b8080ecce8a405f9
MD5 c972e4dcf59c4c983a495f8dd4c8fb64
BLAKE2b-256 d3ce097ff15e68f04acb88f013db34c737b2aa3b17bc7b034b2861c7ccb70f33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 443f32e94b18571231b02a51be173686114b5556b5edfcbf347fb63e7bd5ddc6
MD5 a91b839821c8c9e642f639267c02cebc
BLAKE2b-256 c51f2e20bacb264eb2cf4d0f154704a557e52e63b2fb931063df41519104e5a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 64e32c55d04a2e21f0c2fda1b7a3dd108133ebfb8616b52896916bb30e4352ed
MD5 7f381268559d0f322339c3d44d556a88
BLAKE2b-256 d0b4b0a96ac2e94291f9017e566a27302062642937bfc2f34b9c450f468d1a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f7dc2fc175623529fb60a2799748f8877cd48c4541b32cd97b8523465e88b69
MD5 e18edc26084f85534b3add3a93195eee
BLAKE2b-256 511200397a20c3934efb2ecc5778e3d0dd0912dd60229f8a1b974e3d38b692d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2c2d9a74986d3716dc6961e9dbae7a3b25bb1260118f098545fd963ae23252c1
MD5 125a622626546b5477eeb2d37432e728
BLAKE2b-256 6fca32ad85fa0cb8a0e22807f06120facdc3dbdfb8ede4779088eeba57c811ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b6ed62f89c0bd25cec39a7075f6b9354fe4c240ed964e63009d77efcf29c34e9
MD5 322d1be6e636bf975c17e7aa87c3db16
BLAKE2b-256 0f6d527ca412d512da5ab25768ac77dcdc99a1f301527e23e70888b1e09eb93b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8abe5c4c034e497e69f485dcd2c0e6bc87bf0498ad5aef5f539a7d0f9eae6275
MD5 7bb73f4a3975d85d73f84c4bdb03aae7
BLAKE2b-256 96a5ee104b5ccffbe0bcdaf1a9988384253c46ea353bee329ddf571139e0b29c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.98-cp310-cp310-win32.whl
  • Upload date:
  • Size: 924.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 58ca96d73ea0e5575e3f6a9524449c673d62e6ecee3b2ddd5bfb4f49cb315c0a
MD5 665af83f5f8882e4009768e58fe0bfaa
BLAKE2b-256 30e090fe8e2b6f26d8bfc0b4f8b0ffede7c4fba6624c0764f6cdb55c467e0888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6150ba525fac4fda76f5c4777ae300597e70cef739ed2a47cea02ff81a88873f
MD5 9e865c314b099722f554f91588503520
BLAKE2b-256 e21b5f1374ba4c4009bd300566ea60697a4e37a82d8b36420999420463d85e56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9b6f0b9ffb601e2699e265f3f20c353ec9a661e4b5f0cff08ad6c9909c0ae43e
MD5 af8834127ed083691d568550de8c6002
BLAKE2b-256 959d6aa074018d6eb624f0f21294dc503dc869be8eed60eef8e40837635317ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 467740ef8af170e5b6cfe22c272114ed930c899c297619ac7a2ac463a13bdbac
MD5 0eae127edea2be00b3d1eda780bc63a6
BLAKE2b-256 c38c25fe455cbc78e699ed7dfb8a2cd84f289e2d2276668603712503910a4695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f9239785849ed1f55a825bcc282bef1a6073f7431cc535bdc658a94873652ea
MD5 b4fa8605c2705f74030446f75f0e3c88
BLAKE2b-256 5b4989a7e2a7c912c858f8842baaa3c0d36b3b8b7499094e20e4e89464fd84c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 57911445fc91c80d59552adf8a749af9205458920a7328f3bd7d51308658bcd9
MD5 4d961fb3d6ef46e43904fba99656bd67
BLAKE2b-256 3355d6806341d283e17189536c9a507fe000b7728ee6f1be12f65c93a96b02d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1daf0a79cd953e4830746c41e92b98a2f2e9e5ec0e90a9447aa10350e11bd027
MD5 162cc6494c22e31af1331e4ae7b42f08
BLAKE2b-256 155eabe10f29dcb1637d3558e3036485b34e835a4a7c4fce0e2c974b409cd7c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 14841bd2a3d77c4dbba58f02488c374866551e428d755e8d473d82325a0a94f3
MD5 9435dcb170ac45b92970e97fd14c7236
BLAKE2b-256 e349e5aa99222a913bb7839256661513e01da808b49ea6f0f3e384bba53188ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.98-cp39-cp39-win32.whl
  • Upload date:
  • Size: 924.8 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.98-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8b50cbe8e46204eff7aa5a663af5652c45e7807aa560d08e5f5b10c60e795a49
MD5 56189612b216ddf32ff0251946e4ac72
BLAKE2b-256 c6dd1bebcd8842d02cff2525250e8130543cc25fdd63ef723d3522071211d8b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b0ce9efc790c209cce2463058855dceb21438213d2ff13cb5a565d52a7efe25
MD5 ff58cdfff7faf54b8e43ac19297e1279
BLAKE2b-256 49be74c8c451703f18a629eff629707e7a3f62fdad670a74b4e0db079f1c5fa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4b7e23aaf9d5afd91ca13550968bd17f0c17b0966823188ad2a50c51544cf8ed
MD5 5054c9ec6f590181fb93ab6705005f04
BLAKE2b-256 c3b5935d75c25c9f990c47910a88bf0b2d24936cb375be1c8d965bdb28a722ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 472ad943eaffcb6871ece56c7850388e7b8722f520ba73c93e7a6ef965453221
MD5 c690d1fa838993c2321420c97e199605
BLAKE2b-256 fd81ca9b601fa4f6c8d1154eeaddc757e7d3be07da7826ed1b2b35ed3706d68e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7287461d2346f530928ab187f0834cb15ddfbc4553592cacdcb6470364739ec6
MD5 ed0256262ec8c7efbb6752d4de1b47ad
BLAKE2b-256 efa5b7f72e71398a0f9139e6aa64bedca997a50a01076a8ef56f718b2ebc2ade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7f71c4bdedb797052fb2ccad0871c2409bf6f812cb6b651917c55f9e8eced07f
MD5 25b101ed24fca5c3ab7d71941fb4728a
BLAKE2b-256 922ba048a1ef77efb4ef8e92b39161eebfbf24eea1ce7456dbaf0e5b75af5ed6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 00b2becbd7b98905a6de9695cf8682abe0d510ab0198e23c7d86fb2b793b6ae0
MD5 b21bf647d87188ab79c17bd3375b799d
BLAKE2b-256 39110d43f15c37f8fe9b0c146fe58cf244315fb51fd756438a690beb721abff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7425b727c3d6b3b7bad0005a3be316078b254180b712d73955ff08cae3f6a385
MD5 6878d0a5a56ee18e280c03d5fd15142c
BLAKE2b-256 c1d6bbf1ade2b0f29d6561fcb1aabb3826c135dca785fd94bb11226e1f831fc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.98-cp38-cp38-win32.whl
  • Upload date:
  • Size: 925.0 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.98-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2d50edfc4649a1566b64f1a8402cd607e1893bf8e368732337d83f00df62d3fa
MD5 08b78eee90e34beaf7473f9cfb4f75ef
BLAKE2b-256 da7a564e731dd824ce2659d9f4636b747796ec93263a92548a1c5536e6547d4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 918b4caf18b2f73c302c4e197d1c2dafba39eb143d16b4590930b45f15042fdd
MD5 eab178d97db9d73f7c5a03a334623b65
BLAKE2b-256 ca37f0469a6f2a6a59074561d2214effec23ad9a2deac74cce467027f32167b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 720f827dc69ee24951ea4f51b9fb69cc56890a7190fc52c2c0da2545caab1760
MD5 42defa85ca672d11e5e4f009f90fb602
BLAKE2b-256 1458f6a172f46cebf35356cde88207a5cff5616b44fad3d01972b20ed43a0dc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 12c913493d6ebac86ee7ae109e368522a5a365a7b150d4d8cf845599262d2b21
MD5 eb20c52a7fe2f36f2cf4596afc201087
BLAKE2b-256 5c4348e5c2e4056e4fcc5c39e2e2dc9a94055a156d79272f740162cda6a797d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c067ba22be8edc699f6365e01ec15046bf3563dbabfdc052ecc88e581b675cba
MD5 d8625fa75d0881208175b1e361511cd6
BLAKE2b-256 e00de00c3b00ec83bfce2afb2a5d08cceaedfae3b885961f15cb62696d218eb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c23c3a562221bc40eaae42428fcd8e607e0f084ea8aa968ba3f1a7d0ea975807
MD5 b8e433e2dcb2acffbf4da131eb484baf
BLAKE2b-256 b3a5f58542a5aa5bab8475330ca27d91cfabf4c8102e1836961a9010fc1ee8f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 515a971c2a157647ca0e60ce3c435f4b43cd5c9f5862159cfefa0b5b4d46d3c3
MD5 b02505c8a6ad121257c4d8b3c7fbc22c
BLAKE2b-256 9cf3481911dd560b69834034384f95e9b53ac8131760a410efec17466b9311ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e54aa70b574eee895d184072d84e62824f404821e551a82c619c5d4320a93834
MD5 13df4c1477f7d995aaee704e8791d5d2
BLAKE2b-256 5b0fcaa1866f7ffe2f31b30e31f5eba865c778d8154a4daad50f5c7c207fcb78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.98-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 925.1 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.98-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 fa13a125417d28e84fbdebcaf6aa115e4177d3e93aa66b857a42e7179f515b88
MD5 c28db58943d12734a7764abb84a8f4ee
BLAKE2b-256 6714a9d507b785093eea044f1f1ad340710a75414ed61c98df8947705b032914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5ea8fb2c68073fe25a08a178eed269ed382fba074ff2ba4de72f0f56d86630e
MD5 c937344e01bc95e347187082acc853e3
BLAKE2b-256 09fac7ff41ec3aafe16b98ce607b9b3caa76f1f30a20c5bba5e501e5a5648d06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 11f410cc7eeb3e1cfa8d92d128b568e5dc7829b7904b164499fd0209316ec2fa
MD5 4badb8afabdac364261d49f64c42917f
BLAKE2b-256 b7f57cb2c4aa0b99971fcf38372601863c67c256466cd7d2e64323d9fc7c01d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 daf05611089a075b78d353720ccc3a09a78e0846332cff0cc78fda8b2383626a
MD5 a4ba87d1922048a9d9f6683c30c8a90c
BLAKE2b-256 7702136b64a0adf2db5829a7df13808fe8ce920909e7461935950c7daa8f2c9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8663be00a68098f85d6cda1f7041a27de05c320e433fa730ecb1156a8304f21c
MD5 a8c09868e5795fadd52fa17fff856909
BLAKE2b-256 ca9ac3a90185f4a36e4e0e84ca899ef3641b0bef5a0bba03ca56ace8f89e8cc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e7a828f1fe2e51d2d9e5e9b3283d4006f1891efb02a3d9303ed39ddafdd9c864
MD5 0dc4aac1e92d34886e96668d3fb36352
BLAKE2b-256 7a74a1b6637d51c7387e27929ed8fcc95da171526a9ffe432805deffe2d991a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.98-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 934.0 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.98-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 ef384b31ec7a06a9a6aba42e68435f3f3b38809aa65559ede3658cdd446a562c
MD5 dc2d09564048f25d3f9d743f7b73b84b
BLAKE2b-256 1753b22cb725ff41549a174e71974124480716c09a15fa829584da656d224250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffcc78e80c55eab67ee3439ade493607a4e37e1f0b82b168ead3debf9eaeaabe
MD5 dd4abce588b28b8309c3b34a1223093a
BLAKE2b-256 a07f4d529e437fd15e5f4258eadc308de1efbe07486d25f6c03f0ed88c31d09e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b2531c0e9cc8cd404fabd856d80d695b373371c00f1fce29c06f41f3f7429d87
MD5 2ab2a864825bce125c944cef61b6ac3a
BLAKE2b-256 bdda42b219a44091f24a67b8e147ee8aea20d5226125828d5661abe452c6284c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2766cd708e9fc2b5b9784a990a8b303b9e0b9a69fa482616fe86fa538daa1756
MD5 e764d1cf273e2439bbcc1f871522868b
BLAKE2b-256 5f4ef2e5d0a98635214eac51d1bb3739d40125e903c91fbc0b58bd5a22b52e0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sentencepiece-0.1.98-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 35af00f5103a4779694fedea41b6e24947a9ed81166efe63864ab1e781d70a66
MD5 52eaf358671c66d21f91e719c373e90c
BLAKE2b-256 4007277299ff964ddf9ce73041185132bc013230b5c3881bfab409921084f26e

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