No project description provided
Project description
Ikhyunss utils
TN, ITN 데이터셋 생성기
Installation
You can install the package using pip:
pip install ikhyun
Usage
from ikhyun.data.tn_dataset_builder import LoaderInterface, WriterInterface, TextNormDatasetBuilder, MetaMap, MetaValue
class MyLoader(LoaderInterface):
def __call__(self, logger:Logger) -> MetaMap:
## Override this method to load a file and return MetaMap.
return meta
class MyWriter(WriterInterface):
def __call__(self, sents, logger):
## Override this method to process setns.
def main():
loader = MyLoader()
writer = NeMoWriter()
builder = TextNormDatasetBuilder(
'Leo97/KoELECTRA-small-v3-modu-ner',
loader,
writer,
batch_size = 32,
device = 'cuda')
aligned_res = builder.process(8)
builder._write(aligned_res)
if __name__ == '__main__':
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ikhyun-0.2.tar.gz
(3.7 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
ikhyun-0.2-py3-none-any.whl
(2.6 kB
view details)
File details
Details for the file ikhyun-0.2.tar.gz.
File metadata
- Download URL: ikhyun-0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d0712c74ff8c1bb1dfb2046591827e8b76824c659d2c7c63b81268250e86235
|
|
| MD5 |
7c4dacc551b0d0171b6257f7c5890cbd
|
|
| BLAKE2b-256 |
76bb97d5aa8d76a54065c9dd502d373a41cbe5d418e3a683d67b8a8246b9f935
|
File details
Details for the file ikhyun-0.2-py3-none-any.whl.
File metadata
- Download URL: ikhyun-0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9681abb23376e85f21fdf95680419a69719f70b174257620dfd28db99c836641
|
|
| MD5 |
bee37036a015ecd09404b0f556073185
|
|
| BLAKE2b-256 |
7b4f4fb368e1ca78a278f9622352107564a1fde795f157eeb0d4a78cb3706907
|