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, 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.91.tar.gz (500.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.91-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

sentencepiece-0.1.91-cp38-cp38-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8

sentencepiece-0.1.91-cp38-cp38-manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 3.8

sentencepiece-0.1.91-cp38-cp38-macosx_10_6_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8macOS 10.6+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

sentencepiece-0.1.91-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.91-cp37-cp37m-manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.91-cp37-cp37m-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7mmacOS 10.6+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

sentencepiece-0.1.91-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.91-cp36-cp36m-manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.91-cp36-cp36m-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ x86-64

sentencepiece-0.1.91-cp35-cp35m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.91-cp35-cp35m-manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.91-cp35-cp35m-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sentencepiece-0.1.91-cp27-cp27mu-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.91-cp27-cp27mu-manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.91-cp27-cp27m-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.91-cp27-cp27m-manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.91-cp27-cp27m-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91.tar.gz
  • Upload date:
  • Size: 500.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.91.tar.gz
Algorithm Hash digest
SHA256 f9700cf607ea064d9fad34c751fbf49953dcc56fe68c54b277481aa0aec5c18f
MD5 d44ca7e5f6d794d3642dab831a59ee65
BLAKE2b-256 baf6520b56e5977f62aee48833da8b4ff2fdc2b10ebfa0dd78556b1d707d4086

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-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.91-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c2a004470d388272d6c17ca160ef73d6ea1ffcddc345771d817ece5c85d85dcb
MD5 c4da90fb7888dc7234a929d17a13b6e1
BLAKE2b-256 3bbf59a8870c8709cd8c4e6bc5db2fae02f241cbcf36c6b4b4aa6730cd97e3bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-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.91-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9bdff324279359598a516de8413fd2c62bc3c9c8f569f4431829599fbe57e417
MD5 02fffdd62768c0ae428c74fbd113f1cc
BLAKE2b-256 bfe39d5f8017bea407fa47d7b26db2c51ed0573aaed682d8b457b935e006463d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 796726d680d6c26f0f4ff213a0f6b1ef790b02071268adf5f449739c1c903f93
MD5 fe0a458e8585bb707bfe5284a16ea86e
BLAKE2b-256 8f560d0b0669fc600f7b487f4765b8459b546d3bb9600542a4981ecef4378f6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 1.1 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.91-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 79ad2f82b412859c516b569fb89b5e5c0ceba74d71c8d4b99cc8a2c734f3c79d
MD5 f83760f3567d000dde6da1e31b3cd71a
BLAKE2b-256 ff25d7c194dca635badb09078d894f1f327f15729b877d343551b2fa17481354

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp38-cp38-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.0 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.91-cp38-cp38-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 f331fd58f438d5d5476d189e9a4944c84f7e4b027533809292b9c119b58e43b8
MD5 eb60340d4c5c86a3766bf4bae2f952d6
BLAKE2b-256 37599378da684430a41bb6fab4b8d23f53843abfd529d433d334d958afdbd9f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-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.91-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 82d819eb1e997b39424d7422aa885d2ef514f754dd2935a4f4fcfdedeee955c6
MD5 9afe3d69d8b2ed514978ae5e7edc932b
BLAKE2b-256 78c7fb817b7f0e8a4df1b1973a8a66c4db6fe10794a679cb3f39cd27cd1e182c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-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.91-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 f0b383de68604195fe806072e7c8837eb5156455dfdb18fd26a9a94df3f57d42
MD5 a3d89207059399d840244f665aef60af
BLAKE2b-256 68c2f234afabd44235e8768016e9c524de7ce87ad67ffc3fb75cc6561d84d08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3b4175a9d883a3b27436d51cb82794e3a62d0955bb36cc96d5d7932095c13135
MD5 88bfc2ba3d4406463ecb3929e97f6d39
BLAKE2b-256 f2e2813dff3d72df2f49554204e7e5f73a3dc0f0eb1e3958a4cad3ef3fb278b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.1 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.91-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7fcda06cab76136346dd279268664c65f0b66bb2147ceb97e2cec25b426e8210
MD5 6262b9eb770905fbfb02bf97d54a2cd2
BLAKE2b-256 400ee9dfe2bf310cf5a5c48bd7f409e5168f64ee56b113542b66ee5aca6d781c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp37-cp37m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a04218f1b93b5669f3cee1dc8d6c397428e2f6af8843a20ddb2b629f6a86e632
MD5 12806262dbb415010d3623d27ab6e607
BLAKE2b-256 84e32d755b55423787f438269a26d8bd9743698921fdcde748c6fb050b1c1b8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-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.91-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 51c25d504beeef4c697b8f55e2baf7c6b31733a190ff9b983a6db57faa59d3d8
MD5 7a4ab5030727fe028f12ea67bcff27b7
BLAKE2b-256 fa2fefa2492dda74720eef27bf1f2f210a2aa456d5d167cf5bcfee593ea54091

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-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.91-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 8bbb9173168d53165ba00172a5db7734e4826c30e6ffc4b3f8a6098713f6111d
MD5 fbad4e35c669fbc314aeea50d5eedca5
BLAKE2b-256 51cb7693cf8b9449254e5908e73c46f56ebb31aed04e4e644247c1e3cd367fab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b858805ac3c6d92e5454a89476b1f9e0505e1511276cd258d5a70776c70374f1
MD5 709f414b5fb194b674dc4d04ae6a4bef
BLAKE2b-256 d4a4d0a884c4300004a78cca907a6ff9a5e9fe4f090f5d95ab341c53d28cbc58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.1 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.91-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 70b4164c98dba43246a068c848fab5ac9966b5bcd731ee4cb9bcf6ae976389a4
MD5 89cdc05fbc29f5378a8677779a372a3f
BLAKE2b-256 1913cec5de82f1e4395427c5aeaa40187e86d258e7865f8aea737962fb8bac77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp36-cp36m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 c0b01bb8ab3b62aba76d6b0851a1d0fcf5df5ef5616f114ea85917d8ab5f59db
MD5 d5e89114a601f799cff16f17b2d5f6df
BLAKE2b-256 5346e5a9cafe77ab7b624ee1852db37ce0d7f237f84b93df573a0af1d64212fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f1c0cf36fcff4a3ea8925babc3ed7f5f3d58628e062b24f9fad92c400bc9210c
MD5 0b88a7053282a00855f77da0e53baf47
BLAKE2b-256 0fe66c73e00ec7087fe769319f629558f0a4e54b9cbf4d938aca388c81e74ba6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.1 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.91-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 53f4a91c8a6b55a75caad70d9f34bf331a576e9708c549729b06412c857aacb9
MD5 48f69ddabf58feb238b3a5d2219ad99f
BLAKE2b-256 ad6a7576b4774b66f5f762f754332dbdc8e1185490c9b506d3d71589ceca0e81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 123ac26429025b3153f8bae53d044e9dd29539e888dcb9f39a4982e6daf9dbe9
MD5 be70b130437a1e244f86aeb7072566cc
BLAKE2b-256 2eadacfe12d9f4e45f29961879c063e0f967a2f3a17f5b012e1989f1beaeb85d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 679fcdd01e01d990950a46a814210445f2202260d092d3b69f9826739d8aed2b
MD5 be04ef2db059c5d127153fcd076b6691
BLAKE2b-256 7dd246040cf958200c40382b4a3528f007841cedba14f41acead5cb9c6dc787c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 1.1 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.91-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 30224b1f77af9cef79ffe3a40ed0e536be44df75c066f771e9e769b48379bd98
MD5 934ff4fca6c7aeb974c6bf90680b746f
BLAKE2b-256 66a0b9b3c8337ba7326c0a7858698cec310ebd4dc7883de5f6a539aa48aaeb2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 21a2e9f476f0c3e45da1e5da00b7ec5241bbddb524bd7b1b3d61b1bcbc05efa6
MD5 a8fa2547b2bd43a0e3944dec0103a3a6
BLAKE2b-256 fe1f6ae1fbaba26add5ac6e0ce2a13b679d446e8da5785fd28d62a0f63c79b03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.1 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.91-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 b3643634e043fd7a5914d51d7dc60003dad0af976b8496df0406a487b0b83a8e
MD5 0852dc34de7e36151607fa6928b9031d
BLAKE2b-256 adcbc4169e735b2c255bd929adc5c227891ecc046aa2863c286232d43cf49652

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.91-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.1 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.91-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 f2f109514b28326d5c6d69b43ba6b08e6fedf8fc77416b9a9c16be55c9ac138d
MD5 8de9fa89d9fa07d59bf63484f82111c4
BLAKE2b-256 e4ae1df273a996c9c79fc9b3679c19c069a63dc4514fcba98b77d5175ba5b257

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