AugLy-jp
Data Augmentation for Japanese Text on AugLy
Augmenter
base_text = "あらゆる現実をすべて自分のほうへねじ曲げたのだ"
| Augmenter | Augmented | Description |
|---|---|---|
| SynonymAugmenter | あらゆる現実をすべて自身のほうへねじ曲げたのだ | Substitute similar word according to Sudachi synonym |
| WordEmbsAugmenter | あらゆる現実をすべて関心のほうへねじ曲げたのだ | Leverage word2vec, GloVe or fasttext embeddings to apply augmentation |
| FillMaskAugmenter | つまり現実を、未来な未来まで変えたいんだ | Using masked language model to generate text |
| BackTranslationAugmenter | そして、ほかの人たちをそれぞれの道に安置しておられた | Leverage two translation models for augmentation |
Prerequisites
| Software | Install Command |
|---|---|
| Python 3.8.11 | pyenv install 3.8.11 |
| Poetry 1.1.* | curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python |
Get Started
Installation
pip install augly-jp
Or clone this repository:
git clone https://github.com/chck/AugLy-jp.git
poetry install
Test with reformat
poetry run task test
Reformat
poetry run task fmt
Lint
poetry run task lint
Inspired
- https://github.com/facebookresearch/AugLy
- https://github.com/makcedward/nlpaug
- https://github.com/QData/TextAttack
License
This software includes the work that is distributed in the Apache License 2.0 [1].
Metadata
Release files for augly-jp 2021.9.30
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 |
|---|---|---|---|---|
| augly_jp-2021.9.30.tar.gz | 10.7 kB | Without provenance | Details for augly_jp-2021.9.30.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| augly_jp-2021.9.30-py3-none-any.whl | Python 3 | none | any | Details for augly_jp-2021.9.30-py3-none-any.whl |
Total release size: 23.5 kB
Release files / augly_jp-2021.9.30.tar.gz
| Download URL | augly_jp-2021.9.30.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
278e8ead5fbf1d5f4c94369a2d181959e59b413b1bab522d23efd474a2bb6678
|
|
BLAKE2b-256 checksum How to use checksums |
91458a008fd842a95bd1daf68bf783cb02eb180491d82dd48467e4d4489c6fc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.8.12 Linux/5.8.0-1041-azure
|
Release files / augly_jp-2021.9.30-py3-none-any.whl
| Download URL | augly_jp-2021.9.30-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa81349d72504281a369bb19ce8399d92ea64d4a020a23fca64925126e61acb1
|
|
BLAKE2b-256 checksum How to use checksums |
31f38e1ec4151e4753a9b2fa2c2a8e312910d7886edb4d6bd18166b273b227d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.8.12 Linux/5.8.0-1041-azure
|
Security for augly-jp 2021.9.30
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.