Skip to main content

SentencePiece python wrapper

Project description

# SentencePiece Python Wrapper

Python wrapper for SentencePiece with SWIG. This module wraps sentencepiece::SentencePieceProcessor class with the following modifications:
* Encode and Decode methods are re-defined as EncodeAsIds, EncodeAsPieces, DecodeIds and DecodePieces respectively.
* Support model training with SentencePieceTrainer.Train method.
* SentencePieceText proto is not supported.
* Added __len__ and __getitem__ methods. len(obj) and obj[key] returns vocab size and vocab id respectively.

## 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++](https://github.com/google/sentencepiece#c-from-source) 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

### Segmentation
```
% 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
Training is performed by passing parameters of [spm_train](https://github.com/google/sentencepiece#train-sentencepiece-model) 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

sentencepiece-0.1.8-cp37-cp37m-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.8-cp37-cp37m-manylinux1_i686.whl (1.0 MB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.6+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

sentencepiece-0.1.8-cp36-cp36m-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.8-cp36-cp36m-manylinux1_i686.whl (1.0 MB view details)

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.6+ x86-64

sentencepiece-0.1.8-cp35-cp35m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.5mWindows x86-64

sentencepiece-0.1.8-cp35-cp35m-win32.whl (1.1 MB view details)

Uploaded CPython 3.5mWindows x86

sentencepiece-0.1.8-cp35-cp35m-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.8-cp35-cp35m-manylinux1_i686.whl (1.0 MB view details)

Uploaded CPython 3.5m

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

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sentencepiece-0.1.8-cp34-cp34m-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.4m

sentencepiece-0.1.8-cp34-cp34m-manylinux1_i686.whl (1.0 MB view details)

Uploaded CPython 3.4m

sentencepiece-0.1.8-cp34-cp34m-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

sentencepiece-0.1.8-cp27-cp27mu-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.8-cp27-cp27mu-manylinux1_i686.whl (1.0 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.8-cp27-cp27m-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.8-cp27-cp27m-manylinux1_i686.whl (1.0 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.8-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.8-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sentencepiece-0.1.8-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/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6f6b11f1f697b6ff4e3c1da462ac11d2db8ad87cf11fcf58b6833151497ff6fa
MD5 947d6ffbf4899010c3375bd3e1659e6f
BLAKE2b-256 dffa38d6b1153082445838e46c8e45e522b488726b2f71ab7e6896a721aff62f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 0876f56ee5834db52781cca27204592778dcbd992ab59018e9e4eed978ed820c
MD5 e98cb990805ac818171eb8be9a7ee608
BLAKE2b-256 be1ace6aa4985d8f177fedaef77eaaf3810849aedfca62507ff7b8dd4211a0e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f656a99ab620a1ecb579f4e6ff386f8f46cfc3865d4c14896e39f4e0198f8fae
MD5 7a5bc7698ab3c68241474fdb873c9fff
BLAKE2b-256 bf7bccbfae16c95700646e9093fbed2f0a551e4fadc6355c3595c88b53644220

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 80c2fe179f9a511fa084d901a0828bf3b11348f78414b9e32f31fcd79f217ac9
MD5 14107da24837e1a33952042ca709b4d0
BLAKE2b-256 f73fe3fe2b925170b24b0cc13f65da274e67e16965168247b5e6959003209919

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-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/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 ac53c40dfda1e684d02d577e72d8634ca5ebc0a52e3378b69f0d565afc8b4a2e
MD5 b3d5397ac2b05a856572082e61e1f789
BLAKE2b-256 b29aedf650bde5ccb2ac4fdae0de5ea46080ffe8911f2e166dacc49480807611

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-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/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a01b15ba5b5229b134d4d490e2f645f7c8a949cbe314435c993eb5b20f2531b1
MD5 5fde59a3927f601df162d586f4f58e60
BLAKE2b-256 9a2c14eba1e043c9c1b07958b337fab5bd1b448b53755dcd966b8cb71735b16a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 db3dba4653af665875a3fd8da2bb1a1b3a21dbd6e14d2289530c2655c5697826
MD5 5ab6181b5355ff4f6d146697b898849a
BLAKE2b-256 d9b7042f8625d5d340393e766615fff3084734c95c3f0936382d12f3bcd5cdfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e2b64263bf804c1134b04f2bd1f8c5312fdda1f796297157264ed6983ad7941f
MD5 cf8fcb8a4b101ca413ada53cb12919ac
BLAKE2b-256 ed86aeb647d3ccb924997ea0d05b457d82648a1da57c471688ffbbd69650d9bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3fb0cde8010802b2838a70d45f652df651aef2755bfd1162eff9621eb7acfa80
MD5 c18407ec6e9c04b46097e03820bc5629
BLAKE2b-256 d350ff003fe99d0aa38b0ee4a3d4242d39c025ac9c4ad1cab83803a54991d67f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-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/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 361b5fa4788c9fbf1406a7a6983e78c4add1e074cceee539148827e16133d651
MD5 b31d7a3bfa5ad9aa069025726483e2fa
BLAKE2b-256 93b3a2f97b34b4a056a54e8e7aee252e6861fae7a2f08d75e8df012a56c1f0b5

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.8-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: sentencepiece-0.1.8-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3c36b0fb098845a5819a814d86f89a0563599fe82bac7409e15811a119c15286
MD5 9544683657848058395bd77ec7b61cd6
BLAKE2b-256 7eb124552b82639dbdc984b22173c6cc44e1e9565e831b341d9d033b70f4c7c9

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.8-cp35-cp35m-win32.whl.

File metadata

  • Download URL: sentencepiece-0.1.8-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 6143df75e4ef781995d53f96db9b50c0d76093481083ce2e6f9729c32675bdc9
MD5 05cbbab1b4d55823e6319b1141f992d9
BLAKE2b-256 d537289ef19b001568f9e6714c13c2e764b048dc9b4c7e912f78757b8e14a3a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ad37acebfda337b9259caf03c009504faca3ff32a098a4c5a0cd9e793fb9f8d0
MD5 52781ac47d4b8d84405618ec0d2c827d
BLAKE2b-256 7e3b951a020a593f0005be00931310b4e0be142ababad687b3cb128794d09b50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 4a3ab67587d89343a44c080ae00e3d51c8169b6f0659081a4128db2269497e43
MD5 4f2e916cfe2dd0f7293857046e123b50
BLAKE2b-256 f485883f8faf8b56221c743c88acb7f3da71127682129765ecd3aa431a0fa177

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-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/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 24e89a8eedc3003b62e8569b447b5ad81047b10b608a4e99d853addae6f21680
MD5 60dd515d42c6faa73a77f0d47440d333
BLAKE2b-256 5022a843ddf2c719dc320978091f2bb1f6567c209e97c9faf4077926e0bd4d96

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.8-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.8-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 988e02ee8aee1d3d8f02b346a3ce2d55ccb91ea4b17d98209c8ebcd8e9f47a45
MD5 9e5d266fa3bee6c62eb1ed9fca5d5470
BLAKE2b-256 27d913d5b853dbb5ac30737735d2b1048efeddddb45b60e731b0461271ba3940

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.8-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: sentencepiece-0.1.8-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ebfa42ff371b4146008179659fb6b679a98f14b1206629c826a64e81bd3a4ca5
MD5 72585ada6cca1827a2b3c62cc89c4664
BLAKE2b-256 f6ca755fbbd8078f14452b64065cb412191aa1db94afff4d2c476ba6e904c429

See more details on using hashes here.

File details

Details for the file sentencepiece-0.1.8-cp34-cp34m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: sentencepiece-0.1.8-cp34-cp34m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.4m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 7315af72c7e62ffab99fd24cd0797afe2b86dd736c5bd6dd0db614b43dcf4acf
MD5 b36c6489bcc0273501c6e5f679beb8cc
BLAKE2b-256 9ebb6a21da98fe1fb43460f58ad117671be13817110ee6da63e1c13fe9964add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b682e14cd678b519d8e7275a28a3bf258818eadaa7904348c5a97f69b0d2071c
MD5 904118f7cfb6a45a219cd85d155a2945
BLAKE2b-256 b7006c3c15e2d9993cc198e71fd9e1058db1af96f940559321782d0d952a43a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 512e467dd73f01d952eacef10ba6c0d789c1fef366e68b53c37184ce8f41fb34
MD5 85c972772f7434de28f34f309f2a9e31
BLAKE2b-256 9bd41eb6d191bffe7d21745a1f1ce14a9c9351019188d98d5a8ce8ee43f5296b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c4374cae2a6e33f25093a83fb4d965b505ea332164371039fa10030bd5324975
MD5 f39709ad0fc3e66b9247390f42ec3bbe
BLAKE2b-256 e54989858521ef9e1c80edc09cfa6828bb5b40a1486339b4e922e6bf5b9afc2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 a80f5bfc4da5fe647cbb41ce20710bbd9163e3c8917a9307d6199cb899648f13
MD5 14b33b197a19a91d691a6e007f23207c
BLAKE2b-256 2ecb15713af50aef5c55e5bef24282c28690c9d594c329d9e7f17a2d35ff5502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.8-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/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.8-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 5ceab4430d71f7ae7a7124b094b61ac9ca7c5359e975f0a699210976f9202aa7
MD5 997404cd2bef6efbcafa706130bb91d1
BLAKE2b-256 a9d0eacfd45d66ccf199f729c6358599459ff47e7cd9d15c51251ba6e703922a

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