Chatspace Save Abandoned

핑퐁에서 만든 채팅체랑 잘 맞는 띄어쓰기 모델!

Project README

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
Open Source Agenda is not affiliated with "Chatspace" Project. README Source: pingpong-ai/chatspace
Stars
154
Open Issues
9
Last Commit
3 years ago
License

Open Source Agenda Badge

Open Source Agenda Rating