Wakong
Wakong: An appropriate and robust masking algorithm for generating the training objective of text infilling
This project is the Python library of ARP 1: The Wakong Algorithm and Its Python Implementation.
This project is supported by Cloud TPUs from Google's TPU Research Cloud (TRC) as a part of my project on large-scale language model pre-training.
Installation
Wakong supports Python 3.10 and above:
pip install wakong
You can also install from source:
flit install
Usage
from wakong import Wakong
wakong = Wakong(seed=42)
sentence = 'I can eat glass , it does not hurt me .'.split(' ')
print(wakong(sentence))
Output:
['I', '<mask>', 'eat', 'glass', '<mask>', ',', 'it', 'does', 'not', 'hurt', 'me', '.']
Metadata
Release files for wakong 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wakong-1.1.1.tar.gz | 8.6 kB | Without provenance | Details for wakong-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wakong-1.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for wakong-1.1.1-py2.py3-none-any.whl |
Total release size: 17.2 kB
Release files / wakong-1.1.1.tar.gz
| Download URL | wakong-1.1.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08efd7274176160b4a1acd886197f1ae4cef576298e519d1bb1e39d5f3436e58
|
|
BLAKE2b-256 checksum How to use checksums |
68f56e86e1209590cb90de1dc535d7003f8632e22cea42e82e4a54fa853a6af0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / wakong-1.1.1-py2.py3-none-any.whl
| Download URL | wakong-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7d8b726b17302b14d70996cbc930756db0157ed2b4d59acac1af893719b326c1
|
|
BLAKE2b-256 checksum How to use checksums |
5f053c2d36a8808e3d49e10310653c444cec0882abd49e9a05c29cb5047bfd20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for wakong 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.