Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

spacing model for korean text with chat-style

Project description

https://travis-ci.com/pingpong-ai/chatspace.svg?branch=master https://codecov.io/gh/pingpong-ai/chatspace/branch/master/graph/badge.svg

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

Getting Started

from chatspace import ChatSpace

spacer = ChatSpace()
spacer.space("안녕 만나서반가워 내이름은뽀로로라고해")
# '안녕 만나서 반가워 내 이름은 뽀로로라고 해'

Requirements

torch

Installation

From GitHub

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

Detail Usage

Batch Inference

from chatspace

spacer = ChatSpace()
texts = ["안녕 만나서반가워 내이름은뽀로로라고해", "와진짜대박", ...]

spacer.space(texts, batch_size=64)
# ['안녕 만나서 반가워 내 이름은 뽀로로라고 해', '와 진짜 대박', ...]

Iterative

from chatspace import ChatSpace

spacer = ChatSpace()
texts = ["안녕 만나서반가워 내이름은뽀로로라고해", "와진짜대박", ...]

for origin_text in spacer.space_iter(texts):
    print(origin_text)

# '안녕 만나서 반가워 내 이름은 뽀로로라고 해'
# '와 진짜 대박'
# ...

Authors

Pingpong AI Research, Machine Learning Engineers

License

Copyright 2019 Pingpong AI Research, ScatterLab Apache License 2.0

Project details


Release history Release notifications

This version

1.0.1

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 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size chatspace-1.0.1-py3-none-any.whl (10.7 MB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size chatspace-1.0.1.tar.gz (10.7 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page