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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.6+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.6+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5mmacOS 10.6+ x86-64

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

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

Uploaded CPython 2.7m

sentencepiece-0.1.81-cp27-cp27m-macosx_10_6_x86_64.whl (1.1 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f61c2721ac9a092f6670a2b186301f9e52e30beceac65bdae8691200fb5463cd
MD5 c274c73dc137cea045d3bd28cf3acb72
BLAKE2b-256 2f296762d01858d2c48418da157b86230b51652a8136512005d888a1ac07188a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 0fece5ec1c97263e373d6bcf1eff2f3e3835ff710b8989f5db6fe62d1f29d28a
MD5 0e02ab22893cf3c5e7c1d32e6c222f8d
BLAKE2b-256 8c816a480dec3d60a154a5d08c169263a996af29b83799005e2728de1d5220a6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6833b31c4e4fddd8eac4cf9da7a8cc057bad7fcdc9214aba003f72be33c7f629
MD5 c40c620666ec0cd84feb56245b8cd55c
BLAKE2b-256 831559576dcb897b29e8f8392099de4b2eea2e2bd3c4ae4c85ce5a5961e05d44

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 42957e5cde27bd9790ea75b77269e1196c4ab1a4675506753f2da61a0ecbc09d
MD5 5c4c268a58053e96090814bc6808992a
BLAKE2b-256 35c256fe2849c7321f83cfdb1e912e9d0cab6cd4e0fdf26df8b6157c034e365b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp37-cp37m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 15be9a2af524fde1c3405fecaf94583851038ca039b6e237d7b7337d926f3e37
MD5 da52151262219a78a51d167c58ec5c1c
BLAKE2b-256 4e5e8d450ca133b2e750f94f4f6b5114239fa0a3a8d70f4ddb4db96e8b2ba4af

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ab60614883dffd065c67a48d8bcba1b7246976d507768f522afc728568bfeba1
MD5 f81bfb91cfeef0393e71f275c940ffb3
BLAKE2b-256 1e71f2dfe0f5f2adacb84b22652f2d2c7f93657beed96dec04e49bb82c493918

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 493b1594a05816c2ede2ac777c121b9f8188a443e13ea0504883464c9b96c486
MD5 8b50c87d3ed45ce93913fb50c63c8692
BLAKE2b-256 d8cc9d59e1ca8c54ef4f77a36c2a46ecb026ef92e3d3d4cc8f832bc7079fce39

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 276932a8fb31b355aa6bd8d9f7fd2013ee8c7636725647ba2652473bf55dfb62
MD5 94782102ad36f332bf21ea2f38f0c62e
BLAKE2b-256 7e8a0e4a10bc00a0263db8d45d0062c83892598eb58e8091f439c63926e9b107

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 616940ce5cc5646469ed06828d21ca6b864811b40dd5aeac543e9eb7056f6669
MD5 69ba1a0def53d8920eef13528da63bdd
BLAKE2b-256 7b11c9a58b20d2371dede4cec4512377a7b2c685d86536758668a6fa33735017

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 9b212235172dd2612225cff4eec9ed633b067f1f5da11c1d93d6add3192d0af6
MD5 46c056b592f8d466fd1443f935260455
BLAKE2b-256 4e8a4161ae404f671032c26e6407f6df01a229beb05dbac9fd3ef9dd47bcee51

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3b8a18278c072c198c4912f4d8199fd01e1e452f413ce37c79fa62eb53b49611
MD5 50af722f104ab045fc537b2af144743c
BLAKE2b-256 88e73e016c6f16e17286ebe38ca61e4c5504b452bd9a3526ad9b08c3057929a2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 77aae9049b0945b89695a1fbb5c170c64baf88bc7ef9de79c09732072c5a2a13
MD5 5931e23b9447c28ba9e202be158a5613
BLAKE2b-256 7583bf615d12e002f84c86164e6344948e9f7dff5213d8683658d669bcec586d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9db9232b7dfbbcea051c58fc0cdcdbefc834d5fc4bf73fdfe9f76ae4149bd707
MD5 de674e6e562f2b6376bc46cfd759bef8
BLAKE2b-256 962f168da118beb6eef637e5f5af955a017a0bf83cff496832aa5a6b24bb01c5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 8f5f79aa83f163198bdeb6d1857aa066bf64ceb7cb58fd1a59453f4de98d8fe8
MD5 90109420ee003fb9935148964d0fc281
BLAKE2b-256 1bf0badd910f837b828cdc405623e76a9a9c3bc3561cee7f125bdf092a1101c6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 d21db578aabd2bb34b29958f29023b6bfdb1711a2006fdd8f87d0d9ad9ef27e4
MD5 2c4ec3d6dc91df401397adea82bb7d56
BLAKE2b-256 c202b076ab9af51f8c694deb7da34c4f4e45e994e383cfd44699c877f95c62b8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 326f65d83c79c1710945cfb48e9c7d54cc79e942e01be90751a49372e2938e7b
MD5 3fa9adff580987f44445d78e8221dc53
BLAKE2b-256 8b721de85f63531e1718712cd06228af076f64a28301b67c35256b755bd023eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 e059602f6e9c0028f0272664fa2bacc61c68e503af91a28f6028b1538eed1aaa
MD5 a053ec2fd2a0334f49f85d042dc220ec
BLAKE2b-256 e50db7d640dd999695f877cfd9302dee83aab4782966103939611ac41db07f14

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 6e8ddd0d6d1e672378face6cfdea35f5a448314f505bb8373a82878b347fa368
MD5 91715799f86eee68f3d1a07a455819c0
BLAKE2b-256 ed127684218ff86346be81f78d32340281224941c71c77724bc055681fbdb602

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 60b8a199caa0899d11991a049e104044646aa777455b58aa1a26538f38847483
MD5 47807aa7e77b38a503612f858575cba3
BLAKE2b-256 fe05bcd19971fae40db40bc06316027a713b3717461cecc0cdb80a5862e815cf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f359fae8985ded8a2ede0a298ebf27529c1533abd325a87f6551f69cbf1dbd0a
MD5 9647c50892eea8fd59ff477ef90a753a
BLAKE2b-256 85c2ea8d2481443b48ad5381c948a4c2a0879a89539dc6d28b7ae9f9bfe22868

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ca761fe038a657f0e08ea41635807cfef4f50b7dc3aef10ad05b13be060d50b9
MD5 ddee5453d692ab096600d2b7c5b8f3c9
BLAKE2b-256 73913bf994a44326b53f8c5ddeea230dad2c0ae8e6bf31d2ffb8b096d04bcbbe

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 293bdcbf6ebc783bafcd5f571d7b9bf46ac07a8ac10a4355fcc3dec79ac11920
MD5 299c92734370f90505fe2b00a8917a6c
BLAKE2b-256 3c71bfccd38d2dd0c2978c6bb5babb28a26074c6ea7b75ff6e3e248c12311a3f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sentencepiece-0.1.81-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 55c89799be15788afa3bc4a68e0a29cc91a76f5ac0b4bd98d72e1bbb228d96cf
MD5 f6f72f61f79daba8e361740193160a52
BLAKE2b-256 e9e7dee51042b6270093dd9c61c21f3b5fd3528e9475300c135f3ef70c891e81

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