Bunkai
Bunkai is a sentence boundary (SB) disambiguation tool for Japanese texts.
Quick Start
$ pip install -U bunkai
$ echo -e '宿を予約しました♪!まだ2ヶ月も先だけど。早すぎかな(笑)楽しみです★\n2文書目の先頭行です。▁改行はU+2581で表現します。' \
| bunkai
宿を予約しました♪!│まだ2ヶ月も先だけど。│早すぎかな(笑)│楽しみです★
2文書目の先頭行です。▁│改行はU+2581で表現します。
Feed a document as one line by using ▁ (U+2581) for line breaks.
The output shows sentence boundaries with │ (U+2502).
If you want to disambiguate sentence boundaries for line breaks, please add a --model option with the path to the model.
First time, please setup a model.
$ bunkai --model bunkai-model-directory --setup
Then, please designate the directory.
$ echo -e "文の途中で改行を▁入れる文章ってありますよね▁それも対象です。" | bunkai --model bunkai-model-directory
文の途中で改行を▁入れる文章ってありますよね▁│それも対象です。
For more information, see examples or documents.
References
- Yuta Hayashibe and Kensuke Mitsuzawa. Sentence Boundary Detection on Line Breaks in Japanese. Proceedings of The 6th Workshop on Noisy User-generated Text (W-NUT 2020), pp.71-75. November 2020. [PDF] [bib]
License
Apache License 2.0
Metadata
Release files for bunkai 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bunkai-1.1.2.tar.gz | 42.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bunkai-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.3 kB
Release files / bunkai-1.1.2.tar.gz
| Download URL | bunkai-1.1.2.tar.gz |
|---|---|
| Size | 42.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59d17c2b9cb53f2716fbeeb26eb4deeb1b630b612ba1b93fe4a48256b25ecfcc
|
|
BLAKE2b-256 checksum How to use checksums |
2ce66caf6f41aaf9925ba839e04117e1698baf5ea6f6823a9b240123fd3764c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.2 Linux/4.19.0-16-cloud-amd64
|
Release files / bunkai-1.1.2-py3-none-any.whl
| Download URL | bunkai-1.1.2-py3-none-any.whl |
|---|---|
| Size | 60.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f95e26a1d744f58a9902fd6f14c43e6c6f1b3a8248cb6139a1697a27af9aaf37
|
|
BLAKE2b-256 checksum How to use checksums |
a8935d85c2d5e3798e6a16b7cf4077bc547a45459b000732be91d57c98e5b026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.2 Linux/4.19.0-16-cloud-amd64
|