Coder Social home page Coder Social logo

chatspace's Introduction

chatspace

https://travis-ci.com/pingpong-ai/chatspace.svg?branch=master

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

Getting Started

from chatspace import ChatSpace

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

Requirements

torch

Installation

From GitHub

pip install chatspace

Detail Usage

Batch Inference

from chatspace import 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

chatspace's People

Contributors

codertimo avatar dependabot-preview[bot] avatar seo-jinbro avatar jeongukjae avatar eagle705 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.