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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.6+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.6+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5mmacOS 10.6+ x86-64

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

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

Uploaded CPython 2.7m

sentencepiece-0.1.5-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.5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 32aa26717c616b694c7014719ad921348f436e89715c2c2ec33446eb8dc249fc
MD5 92a1227093c453f2fe574305efbf87ba
BLAKE2b-256 0b65efccea79f7124ee75ff52b490e915aa7eb33cfbf4f23148fcf02ec29a3c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 27a7b8f7c8229c6d85f8d04656194745ea93a4d0c13451d6279697073b072a2a
MD5 f33c803b1fad382906498814389f590e
BLAKE2b-256 ac9764109fc27c243f6fcec9d9b0e62e9c8be0ce30a140713f67cf5befa50810

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4705a89cb7bf4a4cbec6cd4c7b5cf3fdb20a71e633efa75cfa0d4f1c9be414ee
MD5 044c3e54e4a330344b9bb899ad1e4762
BLAKE2b-256 c4707dea33c001cb913e7ee8c42d582a96b585213f7d6f50fc0849442f637d9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 80b42749ec71716691aaa48d17474ebe491dd94632830e79df9516332630f301
MD5 781aa2f9ffea53b0119fe563b466ab84
BLAKE2b-256 aa3c5f3c857bc6aec5cf1d4201429a569f11e380e9fc0b414a5b7ab38f7deb2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 66b4a079a044376c729f7acbf3b5c98f1c5795c4ea12e137885bc7268aa5dcb8
MD5 f2183b79a863956d47b361862f000a1b
BLAKE2b-256 e9c234e049d34b7187151963aa8fb0e3eb910ef37fde4a85da8045ce5a8a475d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8f7c2e5b20916ee6550c9b6011f77881f7ae3c569828145e50b5130143aa6bca
MD5 47847678dc5556ccb8442214c416d8dc
BLAKE2b-256 18f976b9bcf9a521885dba51d34dcbc1b5199aad0da3e34c2641d9b846ecc088

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 e0b5a32070202ee6f1d02ed184bc91f7d80e987aa526149e0fa94177d1fedaa0
MD5 6fb28b8b4c5fec4f7310f8bab961fc62
BLAKE2b-256 e7d4f343e6f8f93298f99f5e80ea78c2f650fe5b2b009dd421441d0b74baa05d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2344404908d812de4cc6d7184b2a073bbfd22fc0f4b915443e0f7ec822643ca5
MD5 cdfc93c9e5db676f7b803bd81fa90a3c
BLAKE2b-256 c9d58c2bea71ff83fc254771b92328c90743a86fd26f8e685c6a362c34fd807f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 81a345cd37fe82a3ad4569b3389867b0a2808ccf22c9eb56de2fed53f1453447
MD5 595f68d7801370144ec2d97e13d1b9c7
BLAKE2b-256 fdefd32e73ac6dc813688d44e359b9a5b5330c3f529bc418f9874f13ee0f0771

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a765c7ab40f7f24bae98158969a5fa5398155ea9c56f793c636f11ca7121dd88
MD5 c349312f89c5fbca6d7c169e2a58a424
BLAKE2b-256 b0b17be089c825eb4eab96f8b6fb31e8fe157012775206e244e94039a36d137c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 71e2d655d625d8411ca8dcce8b836c478b55737ae6db0ca7478072715a690984
MD5 98ee57c099c16262f7886976f9547491
BLAKE2b-256 b29e2f0eea091a76d011b951b7d84761be4e20662245944bb4fad7accd7fb73e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 8a8375241756c8a23d16de6d8a5ba49d9a218b18bd83ace8f622a8e0bfa68d7c
MD5 5653fb0fc20d440e8bf97f0ec2c78009
BLAKE2b-256 57ef44331319e8f140b9f10c2f94f8b022dcc76eef5c9f122f32ea34084a86b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 221180dcf37945185a4cd8009d98f5ce75bdb25dcb5fc36c5c1681f571330525
MD5 fd58d65268c3b554feae0bafd4b1ae06
BLAKE2b-256 6339626f6e1a2da675a5e60076418ca409c6f50a23f15c9b8ed3cf3ba41814bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ca140f1d6d6bf9b33c7bc1507bad3eff02a78d4c66902e0c8ed297f9fe0e606f
MD5 9d553f55a34ef1193a69624152c75986
BLAKE2b-256 3051700c1d3621e3fe54ac04e01152531987459c2954c100e8e7337ed80014b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 66cf5c57466d8c13363c3f62521a2e453eac49af7faf3c637b82aa914c8b0f5f
MD5 b1261b5f86b9b8812a63e1f781024b19
BLAKE2b-256 0ef8be754337e3bcad556e11fa9d51983621a626639d99e51b12f6ed17c35d28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7995bc7741d54a66328967d2e824b61f91607b3c717f088a04fa162477c0319e
MD5 4394773b4b63a58fe9f74a0cbd2a9493
BLAKE2b-256 f962e29d6815cddb4101548e430351ff735869d74aae8c7adb603f95467aefa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 19ac731053ae15110cb493b1e78ddb13255cd7064282f1701d6f76ee0b09d84c
MD5 df06a427bae4d0141ca7f31fad529dd3
BLAKE2b-256 b5e89fd6405a89b7eb1db2ccec8f4d7deb51c1638c4e58881e51fd604dad0611

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 82c60f41e6f665518ec286465a9c43acb17edfbb685d43f399448e7fd4370aea
MD5 eed6c7c6605df2ec0467721eb261a207
BLAKE2b-256 a6c323701f3132396ea9df96cc0a65b4ac7f1b921d57c12d91e32f50b25f0a69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b8f968acb3a9d79d403bc1c0c828c3dce9250e02b6338b67dbcd57c1202a2ba3
MD5 f88e46be5a28dbd904067c46ee166bef
BLAKE2b-256 1080244f8a8eee0f61c245119f2de0ecffe4e5773956322e63cfdd4d11a50209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 5b333f349b6d46ad91026a82b63a89146aa6e1d34fefbf54f0ab1e1f0d5d4fed
MD5 95d64dcdf7307f63c42a98ef80c357d6
BLAKE2b-256 bf45d728bf652a57392db4512a99d8027eb413006473430cf51d09e9c02db679

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 43ee6de3e0d1a65e19958d40d14a09c87f9fbdbb16b066db8553c9efc765bb6d
MD5 28e4a87193bc12b12ff84d21cc608b77
BLAKE2b-256 3e8ead62e41d3571d9d3c723917a88a4717fa6bb0e0b6bbc2f3fd674735c4bcb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7f31da76ad71301bcc2317428f51d219a23ab7755183522f4b762dabf9865722
MD5 8fa8a5235080269c1ac056922b3d2e99
BLAKE2b-256 363462cf326216b21d4725bff2cc98b8cd96dcba2e94b369c380405702c0fbb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentencepiece-0.1.5-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.5-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 1a4e84a886fd7580c97447f2e2152dc8a141a598ce18e30552cfa56599f1a299
MD5 e3e9403f6bf58f6c0cef121fa616c076
BLAKE2b-256 6579a32c44db160bfec9936db7f6346d103d1285b0b0cc556427982a718f5109

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