Skip to main content

SentencePiece python wrapper

Reason this release was yanked:

Crash bug is reported (confirming)

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, please install SentencePiece C++ and try the following commands:

% python setup.py build
% sudo python setup.py install

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. (Note: this sample is written in old interface.)

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('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']]
>>> 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.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']
>>> 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'))

Segmentation (old interface)

% python
>>> import sentencepiece as spm
>>> sp = spm.SentencePieceProcessor()
>>> sp.Load("test/test_model.model")
True
>>> sp.EncodeAsPieces("This is a test")
['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'est']
>>> sp.EncodeAsIds("This is a test")
[284, 47, 11, 4, 15, 400]
>>> sp.DecodePieces(['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'est'])
'This is a test'
>>> sp.NBestEncodeAsPieces("This is a test", 5)
[['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'est'], ['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 'te', 'st'], ['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 'te', 's', 't'], ['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'e', 'st'], ['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'es', 't']]
>>> for x in range(10):
...     sp.SampleEncodeAsPieces("This is a test", -1, 0.1)
...
['\xe2\x96\x81', 'T', 'h', 'i', 's', '\xe2\x96\x81', 'is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'e', 's', 't']
['\xe2\x96\x81T', 'h', 'is', '\xe2\x96\x81is', '\xe2\x96\x81', 'a', '\xe2\x96\x81', 't', 'est']
['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81', 'a', '\xe2\x96\x81', 't', 'e', 'st']
['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'e', 'st']
['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'e', 's', 't']
['\xe2\x96\x81T', 'h', 'is', '\xe2\x96\x81', 'i', 's', '\xe2\x96\x81a', '\xe2\x96\x81', 'te', 's', 't']
['\xe2\x96\x81This', '\xe2\x96\x81', 'is', '\xe2\x96\x81a', '\xe2\x96\x81', 'te', 's', 't']
['\xe2\x96\x81This', '\xe2\x96\x81', 'i', 's', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'e', 'st']
['\xe2\x96\x81This', '\xe2\x96\x81', 'is', '\xe2\x96\x81', 'a', '\xe2\x96\x81', 't', 'e', 'st']
['\xe2\x96\x81This', '\xe2\x96\x81', 'i', 's', '\xe2\x96\x81', 'a', '\xe2\x96\x81', 'te', 's', 't']
>>> sp.DecodeIds([284, 47, 11, 4, 15, 400])
'This is a test'
>>> sp.GetPieceSize()
1000
>>> sp.IdToPiece(2)
'</s>'
>>> sp.PieceToId('</s>')
2
>>> len(sp)
1000
>>> sp['</s>']
2

Model Training (old interface)

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')
unigram_model_trainer.cc(494) LOG(INFO) Starts training with : 
input: "test/botchan.txt"
model_prefix: "m"
model_type: UNIGRAM
..snip..
unigram_model_trainer.cc(529) LOG(INFO) EM sub_iter=0 size=1239 obj=10.4055 num_tokens=36256 num_tokens/piece=29.2623
unigram_model_trainer.cc(529) LOG(INFO) EM sub_iter=1 size=1239 obj=10.3187 num_tokens=36256 num_tokens/piece=29.2623
unigram_model_trainer.cc(529) LOG(INFO) EM sub_iter=0 size=1100 obj=10.5285 num_tokens=37633 num_tokens/piece=34.2118
unigram_model_trainer.cc(529) LOG(INFO) EM sub_iter=1 size=1100 obj=10.4973 num_tokens=37630 num_tokens/piece=34.2091
trainer_interface.cc(284) LOG(INFO) Saving model: m.model
trainer_interface.cc(293) LOG(INFO) Saving vocabs: m.vocab
>>>

Python2/3 String/Unicode compatibility

Sentencepiece python wrapper accepts both Unicode string and legacy byte string. The output string type is determined by the input string type. The output type of IdToPiece/DecodeIds methods is str, but note that it is a legacy byte string in Python2 and Unicode string in Python3 respectively.

  • Python2:
>>> sp.EncodeAsPieces('吾輩は猫である')
['\xe2\x96\x81', '\xe5\x90\xbe', '\xe8\xbc\xa9', '\xe3\x81\xaf', '\xe7\x8c\xab', '\xe3\x81\xa7\xe3\x81\x82\xe3\x82\x8b']
>>> sp.EncodeAsPieces(u'吾輩は猫である')
[u'\u2581', u'\u543e', u'\u8f29', u'\u306f', u'\u732b', u'\u3067\u3042\u308b']
>>> sp.EncodeAsPieces(u'吾輩は猫である'.encode('utf-8'))
['\xe2\x96\x81', '\xe5\x90\xbe', '\xe8\xbc\xa9', '\xe3\x81\xaf', '\xe7\x8c\xab', '\xe3\x81\xa7\xe3\x81\x82\xe3\x82\x8b']
>>> sp.IdToPiece(10)
'\xe3\x81\xab'
>>> type(sp.IdToPiece(10))
<type 'str'>
  • Python3:
>>> sp.EncodeAsPieces('吾輩は猫である')
['▁', '吾', '輩', 'は', '猫', 'である']
>>> sp.EncodeAsPieces('吾輩は猫である'.encode('utf-8'))
[b'\xe2\x96\x81', b'\xe5\x90\xbe', b'\xe8\xbc\xa9', b'\xe3\x81\xaf', b'\xe7\x8c\xab', b'\xe3\x81\xa7\xe3\x81\x82\xe3\x82\x8b']
>>>
>>> sp.IdToPiece(10)
'に'
>>> type(sp.IdToPiece(10))
<class 'str'>

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.92.tar.gz (497.5 kB 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.92-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8Windows x86-64

sentencepiece-0.1.92-cp38-cp38-win32.whl (1.1 MB view details)

Uploaded CPython 3.8Windows x86

sentencepiece-0.1.92-cp38-cp38-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8

sentencepiece-0.1.92-cp38-cp38-manylinux1_i686.whl (1.2 MB view details)

Uploaded CPython 3.8

sentencepiece-0.1.92-cp38-cp38-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8macOS 10.6+ x86-64

sentencepiece-0.1.92-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7mWindows x86-64

sentencepiece-0.1.92-cp37-cp37m-win32.whl (1.1 MB view details)

Uploaded CPython 3.7mWindows x86

sentencepiece-0.1.92-cp37-cp37m-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.92-cp37-cp37m-manylinux1_i686.whl (1.2 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.92-cp37-cp37m-macosx_10_6_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmacOS 10.6+ x86-64

sentencepiece-0.1.92-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

sentencepiece-0.1.92-cp36-cp36m-win32.whl (1.1 MB view details)

Uploaded CPython 3.6mWindows x86

sentencepiece-0.1.92-cp36-cp36m-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.92-cp36-cp36m-manylinux1_i686.whl (1.2 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.92-cp36-cp36m-macosx_10_6_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ x86-64

sentencepiece-0.1.92-cp35-cp35m-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.92-cp35-cp35m-manylinux1_i686.whl (1.2 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.92-cp35-cp35m-macosx_10_6_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sentencepiece-0.1.92-cp27-cp27mu-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.92-cp27-cp27mu-manylinux1_i686.whl (1.2 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.92-cp27-cp27m-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.92-cp27-cp27m-manylinux1_i686.whl (1.2 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.92-cp27-cp27m-macosx_10_6_x86_64.whl (1.2 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92.tar.gz
  • Upload date:
  • Size: 497.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92.tar.gz
Algorithm Hash digest
SHA256 5daf059b31ef82b52698f86891ed8376550d36a5b87a4a3590a94a255346ee08
MD5 0d307e623e174e39541d064225c526e4
BLAKE2b-256 18f32f9006ce3bd44dd4a198dfee37eb5f5bdddcf5f5880c35812c646a92cfa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21c23ebe3c7299bd3d2e09f68a669b28d3a2f652f67798176840b5a31f952667
MD5 8a6ad79e6038ee968845891a6ddb2fb2
BLAKE2b-256 0afdc8fec3efb6d5c8fff13d58516cfe6c6901509574a5ef03c3715e750862f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92-cp38-cp38-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f7a695e6bfc1a78dddacb0cbbbaba02a12da26ec1570cb91a9744fd46467a9fc
MD5 b5a1998fbe7f0abc880d82c251287163
BLAKE2b-256 84b2d9117cd86e62a3e82ef4d57f7cdb2a1ef920692db68c28638fd1e3b5d974

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0ae4ff32626786d8c46823bdffce1098dcd5c8fdf0875000b9b95974301d8162
MD5 165d726997654b24b2f7dc213485b89c
BLAKE2b-256 442379696e92e893ab0de711c8438abdd420856d959fc1bc1630f5e4d0934d4f

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp38-cp38-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 fbb9060839c95799029f4ddf2154aa0fd2e73836e589b1c8ea02ece236252599
MD5 537d418875b3f755716ffe76c6df8104
BLAKE2b-256 0f8b9ff6a83b534f1de1d01f4d0ce09c986ad036d4261a9d84de5b8b1387de36

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp38-cp38-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp38-cp38-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp38-cp38-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 8e314d06ff358881df0ee784f653d222c4ea551eb7fcac00c80b082d63810602
MD5 2940b5d13914576c5b32877fef214774
BLAKE2b-256 465cb173e59c15892e2e614b56f1d9379934944945ce58009964286718af0164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c46a687723433d2e933ecbe201d818c3b7a18d0e0043794ed750c3472391b0c7
MD5 d2c7169330ee0b56e1363aa1e48c79ba
BLAKE2b-256 5f036cd0c8340ebcecf45f12540a852aede273263f0c757a4a8cea4042fbf715

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 ef587b573700e77e6bd8e4d702e71129ec71171c712cd15bac351d5726d611fa
MD5 1b98f803d5c3f856b0dc30a8b3b09904
BLAKE2b-256 8c3d533ab3ba094aa9843723845f1a722afa3dc9034f2c114d99a23d6b26043a

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 da5e5c29b4754da8cda52e72a1bfcfddd7d60bfe73bdf8e286650eacc205ac62
MD5 b4f42d5c53723100c3ff382a2ca11eac
BLAKE2b-256 1e058d8d8fc7ef89d36bbdc9b4ff808def3db0dd52658e67f16779eb05ddb558

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 b36a8dfd4de5c65ed0712839985efa4ecd21b645d870db5c18823b29f6c9117a
MD5 117542039b1427344feaa6692f028a4c
BLAKE2b-256 d42bd3f998ebe374f0c1f302f8a772021b67eca2dd4c04e9a6b5ab4a52aab649

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp37-cp37m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp37-cp37m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 3d8c36c21d4ed395f24b98e3289128448e23288b8f1a9242d5f33df13d16fd90
MD5 d52da258eb8d2d15c14b6bd8d20fd24e
BLAKE2b-256 98cff235332b2e557b25e628835bf4ca6b604ba19610438f171ac98fe9bcc608

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fa9cb02572bc28dad2c53761678d314e194bd8d3a87a3eb545427915b5034c57
MD5 befee4a113a7517c531d36533b48c3d2
BLAKE2b-256 e1630acf3a58fc7aa8c2f534615eb8a343af199984db9bff09464e9302bcf13f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.92-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 de808a218b197e6105bacafe0008a1c76d5c5d9be3d10dc4c6d2974653f01034
MD5 23651b64f800f3bbb96f62c2b9cb9f46
BLAKE2b-256 5662f6692f0707920c426e4524bcff01fdafcbe36a61cd7025c2d509510bd4ce

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7fd16c761339f593596b63e50810a2d2eff964d428ab79a49674c7371c055561
MD5 d935e93fd1f74c479d8e3fc5eba234f1
BLAKE2b-256 68e50366f50a00db181f4b7f3bdc408fc7c4177657f5bf45cb799b79fb4ce15c

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7755b14655e882fffeb4b76571bc6074d048727fb3b081b7605381edadcf9442
MD5 5c9e1eed9ed1aa34a0272cec34453b7b
BLAKE2b-256 ca592353bfc976d925b8142745863c47b6741f7ebba302a3bd87c4a578dd87f2

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp36-cp36m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp36-cp36m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 9939d818053e0929edbb144f14487e2cd007a32445658aa0376673aefc87d6d3
MD5 24d9e9a873ae613897badfcd9995ec20
BLAKE2b-256 f045100e20ff5af608824b38c06b05581d1b72815831d310d77af25ec15951d6

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e6ab8b0b67b345581aa0b49c0fc58a8c7515eb4a27b9cc24d3cbfe2affbdd7e8
MD5 2d97131ed8cfea4d50f0dd74e4c6a359
BLAKE2b-256 7ed55617273b6b30424febab51437ec6e3f35c436b37f67d1f73a19f0e42a50b

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3d6760dad64d228bbd655aee5063a379e05d348efb3914334110e813fb0db941
MD5 bef62e128a59280d2dc707549729e77e
BLAKE2b-256 621926c8ddbd66af7a65d9d9176f647e1a6dc543df9092140901cac89deeb7e2

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 d15c0550b9e034ed7c43357abfbbe05e8c05e63116162ca9e2c4557b6dca2653
MD5 a51ab519857a470ca2714f3abd8f3d08
BLAKE2b-256 b19fb5bc8ab62035946bcc34339f8a80b07ae98e219dcc348cf7a138a5c88d8a

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 997bc09c70e9d6f8b880bffaf83900cf1dabf65afd0b4ea5461b4c813caaec40
MD5 e10d09171f76329eeade0b657de9b0ea
BLAKE2b-256 5416e6c03a35258d81fae0446c28e7855387de1c305a176cad167705f75add78

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp27-cp27mu-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e6e32647417084623b4d17ec2e16de4be112198be9536d760ade05fb53749a3b
MD5 c3654920895430ff1f708c5643a73d15
BLAKE2b-256 8d085e629316c526aa4a18a7b77fe4ed9d57932bb31644c039bad9cb3c0047e6

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 040c91321e3ad1b468283a2518bdcddcd7eaed61072dbe65357f03551b2a33c4
MD5 8d3827b1a1e8302ad96846e2d89f7441
BLAKE2b-256 d3605c5727c0c9857b1482a7e544393ec0bd55fe29a17d7d0f5aaf71a9065fc8

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp27-cp27m-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 d1a2d2d83e1e9b38f873fadef090c0d6c020f522bf7f256b92ffe5464e0d8ef9
MD5 ec85bb1d36849b50405789f7d0d592b8
BLAKE2b-256 33a3900deee24987b7df807caf231eca70c113c4ab0ca36d5166804ed665314f

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.92-cp27-cp27m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.92-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 2.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for sentencepiece-0.1.92-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 366cd4e01e723075786f0383d6b153965c09567ced96618dc2a3be2ca7353d5a
MD5 8234b3e74cabb756a9d65ab666fc6b4e
BLAKE2b-256 d9685cb322f1d5bd8f488eeb1931febe9b538794c63a55b7a22e3aabff62311b

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