Using Korean Language A Easier Data Augmentation
Project description
KoAEDA
Using Korean Language AEDA Easily
Install
$ pip install koaeda
$ sudo apt-get install g++ openjdk-8-jdk python3-dev python3-pip curl
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
How to use
Basic use
from koaeda import AEDA
ko_aeda = AEDA()
text = "이 주변에 맛집이 어디 있나요?"
result = ko_aeda(text)
print(result)
>> 이 ? 주변에 : 맛집이 ; 어디 있나요?
Include Special tokens
if you want not to aeda some words, Try this.
from koaeda import AEDA
ko_aeda = AEDA()
ko_aeda_special = AEDA(special_tokens=["[SEP]"])
text = "이 주변에 맛집이 어디 있나요? [SEP] 그 맛집은 맛있나요?"
result = ko_aeda(text)
result_special = ko_aeda_special
print(result)
>> 이 ? 주변에 : 맛집이 ; 어디 있나요? [ : SEP ? ] 그 : 맛집은 : 맛있나요?
print(result_special)
>> 이 주변에 맛집이 어디 있나요 ? ? : [SEP] 그 맛집은 ! ; 맛있나요?
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
koaeda-0.0.5.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koaeda-0.0.5.tar.gz.
File metadata
- Download URL: koaeda-0.0.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc95d601d03b592d8eb9061d9151ef4ea2331f77bbd987373dc5af77e03203fe
|
|
| MD5 |
a0a8003e5e00e06d3d028129fed4ed25
|
|
| BLAKE2b-256 |
586cabebc136adc8a6e7cfa91331ca555f5617f2615b82a1ad67b9921d960fec
|
File details
Details for the file koaeda-0.0.5-py3-none-any.whl.
File metadata
- Download URL: koaeda-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f155dc25ea1b144e51ed09e1cb724362303f1ec72e414e4eabe6257e4b12509
|
|
| MD5 |
1d1612f714ac9f1ae2932d4b3f41a99f
|
|
| BLAKE2b-256 |
f48fb6bebc6caa8ee068dc4d31a540612dc4f924ccf5f146ebfffc77c1ecfad2
|