Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Spacing model for Korean chat-style texts

Project description

Chatspace

CircleCI

Chatspace는 스캐터랩 핑퐁팀에서 만든 대화체에 잘 맞는 띄어쓰기 모델입니다.

사용 방법

한 문장 추론

import chatspace

spacer = chatspace.Chatspace()
spacer.space("따뜻한봄날이되면그때는편안히만날수있으면좋겠어요.")
# 따뜻한 봄날이 되면 그때는 편안히 만날 수 있으면 좋겠어요.

여러 문장 추론 (Batch)

import chatspace

spacer = chatspace.Chatspace()
spacer.space(["여러문장이", "들어있는리스트입니다"], batch_size=BATCH_SIZE)
# ["여러 문장이", "들어있는 리스트입니다"]

Benchmark

아래는 iMac (Retina 5K, 27-inch, 2017), Intel Core i7 (4.2 GHz), 32GB RAM에서 Batch Size를 1로 맞추었을 때 9,000개의 샘플을 실행한 결과입니다.

$ python -m tools.benchmark
[+] Tracing...
[+] Measuring...
[+] Elapsed time: 00:00:11

Installation

Chatspace는 PyPI와 Github에서 각각 설치할 수 있습니다.

From PyPI

$ pip install chatspace

From Github

$ pip install git+https://github.com/pingpong-ai/chatspace#egg=chatspace

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for chatspace, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size chatspace-2.0.1-py3-none-any.whl (1.2 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size chatspace-2.0.1.tar.gz (1.2 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page