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), macOS, and Windows(win32/x64) environment, you can simply use pip comand 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 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.6-cp37-cp37m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.6+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.6+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5mmacOS 10.6+ x86-64

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

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

Uploaded CPython 2.7m

sentencepiece-0.1.6-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.6-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 99c3d4a263a062282b10cadb8c1f909ffb6e78106514a52cbaf5b8c1524ba569
MD5 defb02a409301a799eeac071cbb74e1b
BLAKE2b-256 c76137aa6ce08787ad2583bac0e8ea7444442ece7177bb99b6955029599fe84b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 4537054788ddad5abc02c506a1097666c5dc39a98d55f3990a2112463adda6da
MD5 4829fc0606d88af46692ded34877a8ae
BLAKE2b-256 7f667a3e6ce7aa72a1d088fbed43a9586413a23461baff1ed4f2caa8efbcc1c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2587288fcb9b89e74550911ef484a849192518ae2e0676d83eea67512b99a0ed
MD5 7d8704bef782985f68955253aea56ab5
BLAKE2b-256 a80519582e53a5bedaa2d6716ca9c5ec16c60683b170e6a67ccc96122002725d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c8001d6cd43d80780d26b5b3c0033bd00afe849ec6f9577781ab6eab14c92c74
MD5 e251a6aba1688acf119b73bed75bb116
BLAKE2b-256 8134e5b9cd9108de74825fd1839c81b680ac40688f4292c78bfca67e6d8e53cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 91d8b1b8b22767272504d49c1749cda746d3e0287a9872c3628bd883b810b4e6
MD5 5ac3ea7a1bb5dd0876e3ed0a67fbdf51
BLAKE2b-256 f6ac3e9ca82813e64f24d3ba073a113cec8bab0f5b714f3a92fda2a2715c0b7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 9deeaa940b380615d017b016721281d7ee9f9d512a8f7919a4c9c958f6d6b5cf
MD5 40df6dbdf77741cc2d1057f8a8a83b8f
BLAKE2b-256 0e5db8243fa1e372b80ee8f3f40673549d43b5ebe248bd71d954c04447a2354d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 523426fc87b38cbdb6cfd137572a24d8eee8ae6382beb10b9799c513015ff184
MD5 0fd46aeea5ba17c2ca5d61cb31bad60b
BLAKE2b-256 b96201c569bee914981bf9d9a1ab218d572a94286c31ff2cf4efa86743b5e73c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 25227735000796a5c8e4f1ae8e440a84d9a42b7a82027782622b3e48922d02e6
MD5 52553ff6f574aed8fb9d5c410507f343
BLAKE2b-256 547fa5fae1ff61d427801e8845e6c1a3ee1c13db6c187e155ae58a0224f21a38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 40b786265ab0f19aaeb1d5c9528a20c8c3fcf96d0db2b968ac4b883f07e9ff83
MD5 6729524b4ecf970dd2ccf69698f2cd09
BLAKE2b-256 d3a76f2457e7fe681a7c9a977540438bd9dae1cc595acd9435923769659fa10d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 4423e4471820467b9d569c0967e52c2cf7e2a841a494023210ab363430f7acb9
MD5 c04344932a6305acb2b4269751938e5d
BLAKE2b-256 7c4e2ed5fb09b46b20a1a5d2444e2573c2eb9e6cb9f3c45dbb91e6addff7620b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 6a4f03da810707591fca43b3cbbd5db3ee1e4b3bfccfeeb3f9ef562f918839f7
MD5 e380bd6e6112adad809a5ef80f39e1a7
BLAKE2b-256 d5ef6f7b88f9f37c31930ca25d485cf995ff6f55b2246bfa1f2f24619167881a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 4460cf088f815a6a56cb3048bb0b8254f6463fa50ea35ba5ee304dc153c46289
MD5 d3615593412e13f0604c94253096b8d2
BLAKE2b-256 942432ae4a8fa44136b3aef7d533560a7a755c67b6b2d629181d708ad7248f16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3945dd4a72de68bf139d1f0cbed28dc0fada2c615a5a30dccd8e5fa929b75918
MD5 8123ac8ace83d3219dc5252619ed39ff
BLAKE2b-256 84644eef1db6fc466c352132047d780745f830c30346a29ec9c42be3caaa547c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7121cd814aa91c858de5dfed241540a00592b5df436d59bfc3348462ebdc0a0d
MD5 e7dd404f3adcc5ba07d646303e11d448
BLAKE2b-256 7aaf712a84518acd25c89be4639f3ae515f1caa832e44a6fac519bd28b45d583

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 7b32da16dd6b0eed6741705d76205de54b8a501c884633c83f74b3f339732c5a
MD5 e8125dfa33d645de382e503a7d432ff8
BLAKE2b-256 0e06372860972f8fcd8b2ebb921db259409a3c5829c6b3de39d91237eb1c308b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8ada819bdc982c70c8b5f2e9df8dba1dd7599a6ee6fef8d8fd5613f97e176280
MD5 928d9a5722988fb5999ff8019d8108cc
BLAKE2b-256 cd219820edaa99fd41b3484f42de51fac7dec77af1980c9dfa1c209d04579762

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 0e57932107f6c1c6e28d9c159a18f88cdcef1830382f53e6030ea613cd4ca2a9
MD5 2f12bd32f1ec0ef07d69d6492d04d38b
BLAKE2b-256 c8a1d8b84e63dd5be0920622740f2f4857aa404f2dfc5fcc9657b4816107b5bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 df156c6bc13fa8210abb84d124c0c6beb6a4da537de2dd37eda639a871cb5006
MD5 86fae2194499a7da06b2126475021a09
BLAKE2b-256 ad698ac788ed08f44b90bab6cede654417d57c3274764b6d508e8ada6bb3b6d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e05d10d4e0a8834a9d0f09a40ba93659b2c926f16aecad06c91266247318c18f
MD5 62b093db172a36d7006cce6691b9bfc1
BLAKE2b-256 963f69cf3918e1ba03a06948661c142be5a0880bff2a232d75529ad8eab98659

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 d3a510283181b11b65af86ddbd444d51bcaaf6ff2b0c02f04171e7f247c82dc0
MD5 976f5c93ac876f3f4e6d1f1469590fc6
BLAKE2b-256 e1b960bc2efd6060c6278b73116229601435f83e3a0749e5c697f627213e188d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7464b29bdfa59c86a4c084e51255c0c7443a1b824bb08e5199be15c6c911b5f1
MD5 14129ad0b2e797e688c2c038b119350d
BLAKE2b-256 e4470be1d9af8658e9cd8559a6cd56018d2bfda102f1aa9ecf2a2a1f896f6b9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7b68c5f2ddbeec16e2f82e2b2c13f3a2e8fb319b5d30ce814dc6ab0df11bea87
MD5 87655ec913976026b19c85854912464a
BLAKE2b-256 03cfe4ba342b195c36fa2cbd4355d40b928ae0dcb32c7b59f36d4e512db979f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.6-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.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

File hashes

Hashes for sentencepiece-0.1.6-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a78fa55a683b45369698cd00350e7ee3d8dd1e6ea4eaa939311282ac79433798
MD5 1a30ba72443f2047810c8ac0c9025b66
BLAKE2b-256 2ce741021a3a27a2959495eb84eddb315aba43c1f992bfb76748871741ebf0ae

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