Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hpprc/japanese-sentence-breaker
๐งจ Japanese Sentence Breaker ๐งจ
https://github.com/hpprc/japanese-sentence-breaker
japanese python
Last synced: 17 days ago
JSON representation
๐งจ Japanese Sentence Breaker ๐งจ
- Host: GitHub
- URL: https://github.com/hpprc/japanese-sentence-breaker
- Owner: hppRC
- Created: 2021-02-28T13:31:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-06T19:43:45.000Z (over 3 years ago)
- Last Synced: 2024-10-09T23:07:10.523Z (about 1 month ago)
- Topics: japanese, python
- Language: Python
- Homepage: https://pypi.org/project/japanese-sentence-breaker/
- Size: 7.81 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Japanese Sentence Breaker
ๆฅๆฌ่ชใฎๆใใใใใๅบๆบใซๆน่กๅบๅใใใพใใ
## Instllation
```bash
pip install japanese-sentence-breaker
```## Usage
```python
from japanese_sentence_breaker import break_linetext = "ใใใฏใในใใงใใๆใฎๆตใใ่ๆ ฎใใๅฅ็นๅบๅใใงๆ็ซ ใๅๅฒใใพใใใไพใใฐใใใใฎใใใชใซใใณๅ ใฎใใญในใใฏๅๅฒใใพใใใ"
out = break_line(text)print(out)
# ใใใฏใในใใงใใ
# ๆใฎๆตใใ่ๆ ฎใใๅฅ็นๅบๅใใงๆ็ซ ใๅๅฒใใพใใ
# ใไพใใฐใใใใฎใใใชใซใใณๅ ใฎใใญในใใฏๅๅฒใใพใใใtext = "ใใใฏใใในใใงใใ๏ฝๆดๅๆงใฎๅใใชใใซใใณใฏๆถๅปใใใพใใ๏ผ"
out = break_line(text)print(out)
# ใใใฏใในใใงใใ
# ๆดๅๆงใฎๅใใชใใซใใณใฏๆถๅปใใใพใใtext = "ใใใฏใใในใใงใใ๏ฝๆดๅๆงใฎใชใใซใใณใฏ็ก่ฆใใใพใใ๏ผๆน่กใฏใงใใพใใใ"
out = break_line(text, ignore_unbalanced=True)print(out)
# ใใใฏใใในใใงใใ๏ฝๆดๅๆงใฎใชใใซใใณใฏ็ก่ฆใใใพใใ๏ผๆน่กใฏใงใใพใใใ
```