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.7-cp37-cp37m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

sentencepiece-0.1.7-cp37-cp37m-macosx_10_6_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7mmacOS 10.6+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

sentencepiece-0.1.7-cp36-cp36m-macosx_10_6_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

sentencepiece-0.1.7-cp35-cp35m-macosx_10_6_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

sentencepiece-0.1.7-cp34-cp34m-macosx_10_6_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

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

Uploaded CPython 2.7m

sentencepiece-0.1.7-cp27-cp27m-macosx_10_6_x86_64.whl (1.4 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 786e3c1ee6d8629548fbd242e2a75d993afe5177205e01977553c6161feaedaf
MD5 4a6bf31449c06eb0ae264634736fdc63
BLAKE2b-256 040e883e1c17f17fdfdaa56b1193664bc6dc179ba86ce0c572ee04ab53d8444b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 b1c9e5d44bc020b8548130d51f68cc964adbb4c3dd73d6e5611868b8967d0b70
MD5 d7bb408320269a8dafbfe8633afd9fc4
BLAKE2b-256 7478e602a05f5f6ab8f28c824b1610a523b2fd4edbf1b3d7abdc2df092da2a5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d942b064432802ecd54ca1e6ff3565def5ce268b456ba7b93364034b85eb6e68
MD5 b2583b32357f72521fedd996f1eb5f2b
BLAKE2b-256 fc0b1d3dfd872d500f1b7e74ab1c0f7479cad2b6b562d8fc18e0ea912b8484e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 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.7-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3d6165b13e51c54df1abf8631a4d3605b5eb77a3213b3bfe293783c3aa9dce95
MD5 88eafddad09599f721f2ca1331e04d31
BLAKE2b-256 4052315ba2b37a3c6d62647349e9b15a2f5614e533c2ae064efc3cbdccce6864

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp37-cp37m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.4 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.7-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 31fa14523a136760522a4d000ab15e0668344ca2e28ba5f7f294f650db5da5a5
MD5 f61aed7e3e3e49d5b4558ecad9f25d69
BLAKE2b-256 cea07b5cf34129ef029b77e7b10054386353cc748979e3159a0040159a28c90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fe77eac4bb68c8adcd927aa4653215659796fe34655157bfac27dd1b5158963a
MD5 5d06c26e2d4314b5a386e0fbc8c12395
BLAKE2b-256 0caa0cf5e44e47b88707146ecb14d4f3b203a41cf8f1323a122140245db375e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 3f0b032235b59bc60c154f6fd215a497807d1ab8ebcb4e8e4059935810eda48f
MD5 2548bf21e58769f3b0d36f328aa1d3c3
BLAKE2b-256 01845606401a3ae2bf11d2359e318db8145113d1252188a4011d11d68a2fe7dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bb3d514a0773ac173310f790511bc5a18399d43c4be4c9b260cc660e1433c62d
MD5 682f493cccb477fc61adbc40f7640408
BLAKE2b-256 38988bb3731386fbe377fae7179c3b94dfaf65ce3d596069d18773f8627fe443

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 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.7-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 392c738f62f0d6c06528700e8f7995eba80dd5babf7350963b56b60f1f9a9bdd
MD5 117e2f83b0e0a3606d0fad400794da48
BLAKE2b-256 662939598229182d9f94ae1f6af2ed27317c03407211ae042bb20d0892c91aed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp36-cp36m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.4 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.7-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 bdcaa166d7faf7e7762f5740dd0597221ad2083304962f06f6f8687721514173
MD5 e7eb0b7abafef6310ba767da4cb05aa9
BLAKE2b-256 b5f16e5adf62eb06c1b1bfdfbfab30eaa37348f0335c4e70abd5c9574a53bdc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 815be6f2096b99df578b142c1bd4f76298de44f5a254b06395673409a22d0ee8
MD5 1e8d0e2c60a0b5ff0a5abb30d3aa5a3d
BLAKE2b-256 420b7c7cfcdae44754b791935f32a34bc25920dc6c31b76be83dd1673c183eb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 4a8ca174a349dd7e9678c16f07f5186f57bd0136351a8b95a07730405e339cb1
MD5 fe54214c914a58706008bbc249060177
BLAKE2b-256 544b85c3afe054c69eee0a8047ef7d96d1354c0f9fecdd4d4af218285b2c170b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4a5684129773051791308658d03741eaa1e8a1cd2de0fc02f3783e77a79badcd
MD5 bd8dc29ff5efa1671552316275c91c22
BLAKE2b-256 79a64af1b40666b66a1a17eb5ca9a874db1c0f5e65afc322c3df5a5ef41dacdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 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.7-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 58648aae0f514ad7bcb1d6665f35af0f1ebe1feb581e571f29f28407b1258cd0
MD5 57188d61ad2c2ca66663560ea13aa1f6
BLAKE2b-256 fb565a212a3e434abcaa4e07712f884ac1c1789d4f2f8b44eebf4b3863b552c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.4 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.7-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 c2b5cededbfcfad3b2fe24c5d87bc228facbbf53537bc947163bd924bf97694f
MD5 f3a3934bd240b8ad49c40682e2f33237
BLAKE2b-256 37924433989016891c3ac87fe905043c670ada6ae316f8090a211627f2731b11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 839114f33ab7a5d91638090062027af6327a5fc00811715cdc365690856c823f
MD5 9f0cacf6ab40aaee789076b01b3cdc4e
BLAKE2b-256 b9edf579ac613c028169be7674d459c766726e210462bfa5f26732253a31f3e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 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.7-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 cb6aca4b39aeabc6c15443b4a968fcb7ed87a8030913cb8f4ab10a54e9daac8c
MD5 b2a14a0c89eaf78b16e76e63a8b3d3e5
BLAKE2b-256 12c26035667b3319dbf3de2770a56a86ef6089167d011dd6c38e009bc9708b2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp34-cp34m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.4 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.7-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 80bac279e1d25a8807159f4c3c6e2f95ae05cf774de7ea591894f25706612ccf
MD5 49373ee8400fba1718bbfd2b44fe7b56
BLAKE2b-256 24f349d134f409e3f7166a42351814de3ec73ee4687d708bd290859ccf5e3ded

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b3279b0f6378f7a803bfa784b9dce4b0d086521c61306532c2a8e1496b56af3f
MD5 fd14c0ad3984ca791ac2a0a2c1f0067f
BLAKE2b-256 47c9f9a314ac32cf4eeb7890e90f5c9d4e84e1c1bb297dc6e27451186d9335f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 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.7-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 4331e0f48d1e11f5963cb5523100d0e00b9c0c542e299b369f97b2f09886d1da
MD5 32ed533b52da9593ec92e1d87c270b57
BLAKE2b-256 6dca1b0daba533019d36d717100f6da115d40185684b8082678d74f728d689f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-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.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.7-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0f68cbd7181aba86a704eec68887b333539777ef05ed73080d414d50255cb424
MD5 9ccccf61b683fe74ac389f5071ae8536
BLAKE2b-256 2864a5fe3b4a438ac02e49cc5b2df8de8aceb20ef7340ac0af27c29ea434d1ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 1.4 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.7-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3b9b8865c26190156a65b11a80238b4a5c224a4a2e7a445fc2cdd0a18d92c4f6
MD5 d55e6583f9fc3332beba4a90909080f2
BLAKE2b-256 a84b30af4f90f79c2cdacdab8682c8a935b8177f2ab9d76d6b60d8f2aa31617f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.7-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 1.4 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.7-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 f43e9ad1489bb755b230b1808638ff9b793d531a39fa5932da3bb3498572a5db
MD5 f300902e35b6975d0442a8fecbb50c1c
BLAKE2b-256 456917828bfbe3b22c20afd74933df0a8aab5f78c39039d4f3c0571c7457421b

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