augly-jp-2021.9.8
توضیحات
Data Augmentation for Japanese Text
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | augly-jp-2021.9.8 |
| نام | augly-jp |
| نسخه کتابخانه | 2021.9.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | chck |
| ایمیل نویسنده | shimekiri.today@gmail.com |
| آدرس صفحه اصلی | https://github.com/chck/AugLy-jp |
| آدرس اینترنتی | https://pypi.org/project/augly-jp/ |
| مجوز | MIT |
# AugLy-jp
> Data Augmentation for **Japanese Text** on AugLy
[![PyPI Version][pypi-image]][pypi-url]
[![Python Version][python-image]][python-image]
[![Python Test][test-image]][test-url]
[![Test Coverage][coverage-image]][coverage-url]
[![Code Quality][quality-image]][quality-url]
[![Python Style Guide][black-image]][black-url]
## Augmenter
`base_text = "あらゆる現実をすべて自分のほうへねじ曲げたのだ"`
Augmenter | Augmented | Description
:---:|:---:|:---:
SynonymAugmenter|あらゆる現実をすべて自身のほうへねじ曲げたのだ|Substitute similar word according to [Sudachi synonym](https://github.com/WorksApplications/SudachiDict/blob/develop/docs/synonyms.md)
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][python] | `pyenv install 3.8.11` |
| [Poetry 1.1.*][poetry] | `curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py \| python`|
[python]: https://www.python.org/downloads/release/python-3811/
[poetry]: https://python-poetry.org/
## Get Started
### Installation
```bash
pip install augly-jp
```
Or clone this repository:
```bash
git clone https://github.com/chck/AugLy-jp.git
poetry install
```
### Test with reformat
```bash
poetry run task test
```
### Reformat
```bash
poetry run task fmt
```
### Lint
```bash
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]][apache1-url].
[pypi-image]: https://badge.fury.io/py/augly-jp.svg
[pypi-url]: https://badge.fury.io/py/augly-jp
[python-image]: https://img.shields.io/pypi/pyversions/augly-jp.svg
[test-image]: https://github.com/chck/AugLy-jp/workflows/Test/badge.svg
[test-url]: https://github.com/chck/Augly-jp/actions?query=workflow%3ATest
[coverage-image]: https://img.shields.io/codecov/c/github/chck/AugLy-jp?color=%2334D058
[coverage-url]: https://codecov.io/gh/chck/AugLy-jp
[quality-image]: https://img.shields.io/lgtm/grade/python/g/chck/AugLy-jp.svg?logo=lgtm&logoWidth=18
[quality-url]: https://lgtm.com/projects/g/chck/AugLy-jp/context:python
[black-image]: https://img.shields.io/badge/code%20style-black-black
[black-url]: https://github.com/psf/black
[apache1-url]: https://github.com/cl-tohoku/bert-japanese/blob/v2.0/LICENSE
نیازمندی
| مقدار | نام |
|---|---|
| >=1.19.2,<1.20.0 | numpy |
| >=0.1.7,<0.2.0 | augly |
| >=0.1.0,<0.2.0 | chikkarpy |
| >=4.0.1,<5.0.0 | gensim |
| >=4.62.2,<5.0.0 | tqdm |
| >=0.12.2,<0.13.0 | python-Levenshtein |
| >=5.0.1,<6.0.0 | ginza |
| >=5.0.0,<6.0.0 | ja-ginza-electra |
| <4.10.0 | transformers |
| >=1.1.1,<2.0.0 | fugashi[unidic-lite] |
| >=0.4.14,<0.5.0) | python-magic-bin |
| >=8.0.1,<9.0.0 | tenacity |
| >=0.9.0,<0.10.0 | dartsclone |
| >=1.9.0,<2.0.0 | torch |
| >=0.1.96,<0.2.0 | sentencepiece |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.1,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl augly-jp-2021.9.8:
pip install augly-jp-2021.9.8.whl
نصب پکیج tar.gz augly-jp-2021.9.8:
pip install augly-jp-2021.9.8.tar.gz