Skip to main content

KanaSplit - Japanese Text Tokenizer

KanaSplit is a powerful and efficient Japanese text tokenizer with part-of-speech (POS) tagging and Jisho.org integration.

KanaSplit Logo

🚀 Features

  • Tokenization: Splits Japanese sentences into words and morphemes.
  • POS Tagging: Provides grammatical category for each token.
  • Furigana Support: Extracts readings for kanji words.
  • Jisho.org API Integration: Retrieves word meanings and definitions.
  • Command-Line Interface (CLI): Allows easy text tokenization from the terminal.
  • Graphical User Interface (GUI): Provides a user-friendly Tkinter-based interface.

📦 Installation

The easiest way to install KanaSplit is via pip:

pip install kanasplit

Install from Source

Alternatively, you can clone the repository and install it manually:

git clone https://github.com/byteMe394/KanaSplit.git
cd KanaSplit
pip install -r requirements.txt

🖥 OS-Specific Installation Instructions

Windows

Simply run:

pip install kanasplit

macOS

macOS users need to install MeCab manually before using KanaSplit:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install mecab mecab-ipadic
pip install mecab-python3
pip install kanasplit

GNU/Linux (Debian/Ubuntu-based)

For Debian-based Linux distributions, install MeCab before installing KanaSplit:

sudo apt update
sudo apt install mecab mecab-ipadic-utf8
pip install mecab-python3
pip install kanasplit

For other distributions, use the package manager of your choice.


🎮 Usage

Command Line Interface (CLI)

You can tokenize Japanese text directly from the terminal:

kanasplit-cli "こんにちは世界"

Example Output:

Tokenized Text:
- こんにちは (Interjection)
- 世界 (Noun)

Fetching meanings from Jisho.org...
Word: こんにちは - Reading: こんにちは - Meanings: hello, good day
Word: 世界 - Reading: せかい - Meanings: world, society, universe

Graphical User Interface (GUI)

KanaSplit also includes a Tkinter-based GUI for users who prefer a graphical interface.

To launch the GUI, simply run:

python GUI.py

This will open a window where you can enter Japanese text, process it, and view tokenized results.


🛠 Dependencies

KanaSplit requires the following dependencies, which are installed automatically:

  • ratelimit
  • MeCab
  • requests

Note: Tkinter is built into Python and does not require installation.


🤝 Contributing

If you'd like to contribute, clone the repository and submit a pull request! You can install additional development tools with:

pip install -r requirements.txt

📜 License

This project is licensed under the MIT License.


📬 Contact

For questions or support, feel free to reach out:


🎌 Happy Tokenizing! 🎌

Metadata

Release files for kanasplit 1.0.2

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

Source distribution (sdist)

Source distribution for kanasplit 1.0.2
File Size Uploaded Provenance Actions
kanasplit-1.0.2.tar.gz 6.0 kB Without provenance Details for kanasplit-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / kanasplit-1.0.2.tar.gz

Download URL kanasplit-1.0.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f84bb7b3ae586e7329fb61a9b4fa3ae05dee2912f03d0a1c0eab2845e917076a
BLAKE2b-256 checksum
How to use checksums
3f2b6c310e90661a703c8f1b8e151dc1437e92e0c42703f87338b87c5b11c721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / kanasplit-1.0.2-py3-none-any.whl

Download URL kanasplit-1.0.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c47556e5685b48ec3055c3bf62967efd881f82bd50631bd5e5267224226d6a9
BLAKE2b-256 checksum
How to use checksums
ac205ca9254920b81d280ddfb585c6f236b3e591a4d749946adc618372668c01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for kanasplit 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

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