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 respectevely.
* 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) environment, you can simply use pip comand to install SentencePiece python module.

```
% pip install sentencepiece
```

Note that binary wheel package is not avaialble for non-Linux environment, including macOS, Windows, and Linux (arm).
You need to install [SentencePiece C++](https://github.com/google/sentencepiece#c-from-source) library in advance.

To build and install the Python wrapper manually, 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 peformed 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.4-cp37-cp37m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.7mWindows x86-64

sentencepiece-0.1.4-cp37-cp37m-win32.whl (1.3 MB view details)

Uploaded CPython 3.7mWindows x86

sentencepiece-0.1.4-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.4-cp37-cp37m-manylinux1_i686.whl (1.4 MB view details)

Uploaded CPython 3.7m

sentencepiece-0.1.4-cp37-cp37m-macosx_10_6_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7mmacOS 10.6+ x86-64

sentencepiece-0.1.4-cp36-cp36m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.6mWindows x86-64

sentencepiece-0.1.4-cp36-cp36m-win32.whl (1.3 MB view details)

Uploaded CPython 3.6mWindows x86

sentencepiece-0.1.4-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.4-cp36-cp36m-manylinux1_i686.whl (1.4 MB view details)

Uploaded CPython 3.6m

sentencepiece-0.1.4-cp36-cp36m-macosx_10_6_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ x86-64

sentencepiece-0.1.4-cp35-cp35m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.5mWindows x86-64

sentencepiece-0.1.4-cp35-cp35m-win32.whl (1.3 MB view details)

Uploaded CPython 3.5mWindows x86

sentencepiece-0.1.4-cp35-cp35m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.4-cp35-cp35m-manylinux1_i686.whl (1.4 MB view details)

Uploaded CPython 3.5m

sentencepiece-0.1.4-cp35-cp35m-macosx_10_6_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

sentencepiece-0.1.4-cp34-cp34m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.4m

sentencepiece-0.1.4-cp34-cp34m-manylinux1_i686.whl (1.4 MB view details)

Uploaded CPython 3.4m

sentencepiece-0.1.4-cp34-cp34m-macosx_10_6_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

sentencepiece-0.1.4-cp27-cp27mu-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.4-cp27-cp27mu-manylinux1_i686.whl (1.4 MB view details)

Uploaded CPython 2.7mu

sentencepiece-0.1.4-cp27-cp27m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.4-cp27-cp27m-manylinux1_i686.whl (1.4 MB view details)

Uploaded CPython 2.7m

sentencepiece-0.1.4-cp27-cp27m-macosx_10_6_x86_64.whl (1.3 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ce8536681a4bc6f208ec1f4f4407352c71b0cbe5bb3d25e93b97b133be4dc8d1
MD5 fdb53ce0e1d604a620eb2cd42d9d6cd5
BLAKE2b-256 803a8d7b3ffb111063b65c0df7d892ec6d073eb0834ce37ba82a0082be3cfabb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 1fc0a6cb8900e9b71fb95e5679e3d1456238a669e3ac2e284d040b6c36c0cbaa
MD5 519bae59beaa919f33e4f469fa1392c3
BLAKE2b-256 727f8d51d599178f4b99d8c14905c335c0f4f1374f555eef3489dcd06c25c51f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f4cc642425771ccaa6fe59091f71fe3a35043b20aba126bcf01e7f97c272f53e
MD5 3f040e988159f23fafbb79374395f0a8
BLAKE2b-256 4d0ff38b8d466e79c33672720f591656f94bc92debaf975a0756726120bca2b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 4c51eb751a38def99aab00b78052ba627f3db5f5d26c6937ebca64b4e6fa833b
MD5 0faf27ae01ecaa514c5b00671cb3ad12
BLAKE2b-256 6db99ac0ed838b8d6db931c5b9c40308ed7f8769741783772364dc2380b15f23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp37-cp37m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 ee63307e4b6c86e355ef505333a2fd0f01dacefd91f00371abfef641ee7f7021
MD5 2bf58bff95cf32c784620274e0ed0ba3
BLAKE2b-256 db3297cb72397859abef717093825f8f85b0a634572a2223a02e7862e139992f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7ebd770d3c6626d7766b3ff5cf9407e969e1a88e3c509bcf22f53e1cfc69ed8c
MD5 e8712612a1957992dd88d2b9efd61303
BLAKE2b-256 2b127a68c585eccace53b3c0be2323d1e29a92a29e2675a1647b32c529cb29a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 619a12e9e809974c2ad245bcb0ab11714a53912e19546e43adca3eee69da835f
MD5 a110f761c83d143217828ff907d2429e
BLAKE2b-256 10c556f553a987887e37cd2954006550b9be6f23a360fdc6fa0266dc0988ae81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a50c4caba0ac5e4cce81c5f8cab38c6881c326328d857957d3132a31b5430c28
MD5 765f6c769ba0f1a09193cc733befa7cd
BLAKE2b-256 b06598eb38dfa92c4a1414570db03a4b1eb6cf79f35d0d86da8fae117d56d4e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 5c7407cd46d7d2132e5973813514ef1583e2987c04dd5bec61d16a0d228d008d
MD5 f9a0e6daeadbc1355b9a4a369e668a29
BLAKE2b-256 93f8e194fab543bc957c7f0876c0fc278c9b9994703de22081d8cdad44a7aa51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp36-cp36m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 eef8f924020a9a40af5df2612c95ce963b86929ef422ea45c5bb2712c2ee3a37
MD5 8537e4ba10c7b443566e822536c39c03
BLAKE2b-256 d1903acbe188e5766f4b90342d2cbb811f492f19b50147ae75cd31d57f5009df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 4a38b1cf31990b55942cc2dfb4941763f774f7bcd618bfe7eb465ea75e901664
MD5 0f5c59d697d62a63eb35eec5361fd9b7
BLAKE2b-256 0a11089fd9a11070b58ffe7463f131d2323128c5a11c87a5223864292ed629e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 5bb904e84a3c166cf77cc3623d6643f48ea018b970ea331c39ad55c1fb59a565
MD5 014db642cb4842ec02eaafa41cbe239d
BLAKE2b-256 cc91beb8270eba37fcb487aff119df5764defd233dad6c8cf5ca6a385e73ed97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0a7432980e65b644d54289ff32f49f7d08212c6d1051e122ff95b40e69a801cd
MD5 7a9d072a1d5ac3146d5e69c4024fa34b
BLAKE2b-256 9755f295864a91e4cc758c7da537e44a140f42e5a9076d44b00faa2ad57bd7dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 95be19fa9853d8bb29369124d66b8952d6af9c1a5febc51d81b1f74a2717fbc7
MD5 7629396c21ce340cc406ae0fb6953591
BLAKE2b-256 03fab848cbbd19925a00ee8ee56739cef1e1fe46881d9c95b881dcadfab79e95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 6da3b16796192247cdafb975ab2369530853cd04fe1ff956ee56136c3aa5651c
MD5 3500f4b04c5717a69f57a1b7784aeb9b
BLAKE2b-256 ff2fb93ce0e1927155f47a475a8008796cb3cf8606876801244403ebb190a277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a5d0fef36590eb78ca8b2ae34e6ee98dca9cce12c941e1cd7b82c4ab0c3a3fcb
MD5 f4166239d0154e1e3573f298acdf8d6c
BLAKE2b-256 0fc73fd8c5ab14b9cd6b0f60c5fdb9c762f30dc7245a71ea9781350928d265f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 df952d196840e4c29f27a2a98f7df3a77dbd09c956bfdb08d174eab2c8cc3664
MD5 c792c2a6d1a879d4f385c68d06bd606c
BLAKE2b-256 85d91fa5a7d3c82f6f3ed993cdbff844a80b9b6c4b3cbea6c8140a04c84276ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp34-cp34m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.4m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 2d98fdb1eee361984733e0b74c15d37fd368d81c36277b2dc07d1eaa6469b275
MD5 e103e62863ea284a1c91afdc87baeab9
BLAKE2b-256 de28ccd073a8920ea1294f17a017a6af759e8bd36b3b93a142f2df82d6e7cf2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 43f656f8e73616ae17f46db6f94c20c80ea8f3f520833ffc0178365aa5f9bcab
MD5 d2496474529918eefd987050fa87405f
BLAKE2b-256 1734c8dadb43ac542d34c1c0531fe3afa81a01adeefea5b4120ea225cbe3bad7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 872a2071fda8560618692556e76f7d513137fcf7ac65f5d09896c900b8a4f448
MD5 ef8489f4a13cd1c78d716ec39a6ffe5d
BLAKE2b-256 66c97708d486dbfaf160e201a16572049561436b3ecc6ba2de2bee169d06b385

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 540a33668249e0afd3217cf4b05db0e5910f02d4d26d50b878b4347ec50afdac
MD5 ebef494d593e7a61d15efcc6fb1aadf2
BLAKE2b-256 d3530c2c1fea8b50dfa2c697e7690e32c5cfd132a09482a4658fe26d060c7eea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6c1788b8970d1d393709a76bc7d1d8293fd95f8bc466798e431525aa9d165a4f
MD5 7a635c8aac5b69a36eb74e3a99bda285
BLAKE2b-256 6768e43d18379f079f8348aa29543ac8fc6a17142f4685ecaf8b64fda35a559f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.4-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 2.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.4-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 6d40b7554fc82ee4797cfd62021f57ee0853b9ec160a62f20d186f597efabfe9
MD5 8da13113c2589c99bf7bcee566b64c85
BLAKE2b-256 4bb0f8894f6c9c818442229d03c426ce2191022cd053c03ddad9b98d93638d34

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