Skip to main content

Bunkai

PyPI version Python Versions License

CircleCI Maintainability Test Coverage markdownlint jsonlint yamllint

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bunkai 1.1.1
File Size Uploaded
bunkai-1.1.1.tar.gz 42.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bunkai 1.1.1
File Interpreter ABI Platform
bunkai-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 102.1 kB

Release files / bunkai-1.1.1.tar.gz

Download URL bunkai-1.1.1.tar.gz
Size 42.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4ca4331236986e0d2b85ce9aa038e64c71e185cf74a4daf92d3eb89c20acab88
BLAKE2b-256 checksum
How to use checksums
550cea60299bd621ead1727b2fab586c4b795d1edc353ad7381d5115e490a9f6
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.1-py3-none-any.whl

Download URL bunkai-1.1.1-py3-none-any.whl
Size 60.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a73d4750d1a80c39490e277ebcd2388c9351529fdf7ff1c4967c386fae7939
BLAKE2b-256 checksum
How to use checksums
472ae27c87947d521bf451b6b98f7ed1185dfcf777fbe5883f9da1aeaf98efe4
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 history Release notifications | RSS feed

1.5.7

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.2

2 release files

This release

1.1.1 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page