chatspace


Namechatspace JSON
Version 2.0.2 PyPI version JSON
download
home_pagehttps://github.com/pingpong-ai/chatspace.git
SummarySpacing model for Korean chat-style texts
upload_time2020-12-18 14:11:31
maintainer
docs_urlNone
authorScatterLab
requires_python>=3.6
licenseApache License 2.0
keywords spacing korean pingpong
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Chatspace

[![CircleCI](https://circleci.com/gh/pingpong-ai/chatspace.svg?style=svg)](https://circleci.com/gh/pingpong-ai/chatspace)

Chatspace는 [스캐터랩 핑퐁팀](https://scatterlab.co.kr/pingpong)에서 만든 대화체에 잘 맞는 띄어쓰기 모델입니다.

## 사용 방법

### 한 문장 추론

```python
import chatspace

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

### 여러 문장 추론 (Batch)

```python
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개의 샘플을 실행한 결과입니다.

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

## Installation

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

### From PyPI

```shell
$ pip install chatspace
```

### From Github

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pingpong-ai/chatspace.git",
    "name": "chatspace",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "spacing,korean,pingpong",
    "author": "ScatterLab",
    "author_email": "developers@scatterlab.co.kr",
    "download_url": "",
    "platform": "",
    "description": "# Chatspace\n\n[![CircleCI](https://circleci.com/gh/pingpong-ai/chatspace.svg?style=svg)](https://circleci.com/gh/pingpong-ai/chatspace)\n\nChatspace\ub294 [\uc2a4\uce90\ud130\ub7a9 \ud551\ud401\ud300](https://scatterlab.co.kr/pingpong)\uc5d0\uc11c \ub9cc\ub4e0 \ub300\ud654\uccb4\uc5d0 \uc798 \ub9de\ub294 \ub744\uc5b4\uc4f0\uae30 \ubaa8\ub378\uc785\ub2c8\ub2e4.\n\n## \uc0ac\uc6a9 \ubc29\ubc95\n\n### \ud55c \ubb38\uc7a5 \ucd94\ub860\n\n```python\nimport chatspace\n\nspacer = chatspace.Chatspace()\nspacer.space(\"\ub530\ub73b\ud55c\ubd04\ub0a0\uc774\ub418\uba74\uadf8\ub54c\ub294\ud3b8\uc548\ud788\ub9cc\ub0a0\uc218\uc788\uc73c\uba74\uc88b\uaca0\uc5b4\uc694.\")\n# \ub530\ub73b\ud55c \ubd04\ub0a0\uc774 \ub418\uba74 \uadf8\ub54c\ub294 \ud3b8\uc548\ud788 \ub9cc\ub0a0 \uc218 \uc788\uc73c\uba74 \uc88b\uaca0\uc5b4\uc694.\n```\n\n### \uc5ec\ub7ec \ubb38\uc7a5 \ucd94\ub860 (Batch)\n\n```python\nimport chatspace\n\nspacer = chatspace.Chatspace()\nspacer.space([\"\uc5ec\ub7ec\ubb38\uc7a5\uc774\", \"\ub4e4\uc5b4\uc788\ub294\ub9ac\uc2a4\ud2b8\uc785\ub2c8\ub2e4\"], batch_size=BATCH_SIZE)\n# [\"\uc5ec\ub7ec \ubb38\uc7a5\uc774\", \"\ub4e4\uc5b4\uc788\ub294 \ub9ac\uc2a4\ud2b8\uc785\ub2c8\ub2e4\"]\n```\n\n## Benchmark\n\n\uc544\ub798\ub294 iMac (Retina 5K, 27-inch, 2017), Intel Core i7 (4.2 GHz), 32GB RAM\uc5d0\uc11c\nBatch Size\ub97c 1\ub85c \ub9de\ucd94\uc5c8\uc744 \ub54c 9,000\uac1c\uc758 \uc0d8\ud50c\uc744 \uc2e4\ud589\ud55c \uacb0\uacfc\uc785\ub2c8\ub2e4.\n\n```shell\n$ python -m tools.benchmark\n[+] Tracing...\n[+] Measuring...\n[+] Elapsed time: 00:00:11\n```\n\n## Installation\n\nChatspace\ub294 PyPI\uc640 Github\uc5d0\uc11c \uac01\uac01 \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n\n### From PyPI\n\n```shell\n$ pip install chatspace\n```\n\n### From Github\n\n```shell\n$ pip install git+https://github.com/pingpong-ai/chatspace#egg=chatspace\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Spacing model for Korean chat-style texts",
    "version": "2.0.2",
    "split_keywords": [
        "spacing",
        "korean",
        "pingpong"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "17bd5a9e3eabad9ea3456d91dd04360b",
                "sha256": "f535a381c881dd8837a47f56d6e84cd455267098b6bbadebbddf6b1dec61d3e7"
            },
            "downloads": -1,
            "filename": "chatspace-2.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "17bd5a9e3eabad9ea3456d91dd04360b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 1178461,
            "upload_time": "2020-12-18T14:11:31",
            "upload_time_iso_8601": "2020-12-18T14:11:31.978684Z",
            "url": "https://files.pythonhosted.org/packages/6d/be/4cbd328e79c5751095082576e351fd921e7688aadde810f1b7787560b5fb/chatspace-2.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-12-18 14:11:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "pingpong-ai",
    "error": "Could not fetch GitHub repository",
    "lcname": "chatspace"
}
        
Elapsed time: 0.17057s