Skip to main content

english2kana

english2kana is a Python library designed to convert English words and romanized Japanese text into their Katakana representations. It leverages a sequence-to-sequence model with an attention mechanism, trained on data derived from English company names and their corresponding Katakana forms found on the Japan Corporate Number Publication Site.

Key Features:

  • Converts English words to Katakana.
  • Employs a seq2seq model architecture with attention.
  • Achieves high accuracy with the given dataset.

Model Performance:

  • Test Loss: 0.1440
  • Test Accuracy: 0.9552

Requirements

Python 3.11 or higher

Installation

pip install english2kana

Usage

from english2kana import english2kana

# Initialize the translator
e2k = english2kana()
# Load the pretrained model
e2k.load_model()

# Translate an English word into Katakana
e2k.translate('simple')
print(output)  # シンプル

Data

The training data is sourced from the Japan Corporate Number Publication Site. The dataset includes a wide array of English corporate names along with their correct Katakana representations, ensuring the model is exposed to various letter combinations and phonetic patterns.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to help improve this library.

License

The MIT License (MIT)

Metadata

Release files for english2kana 0.1.5

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

Source distribution (sdist)

Source distribution for english2kana 0.1.5
File Size Uploaded
english2kana-0.1.5.tar.gz 8.7 kB Details

Built distribution (wheel)

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

Total release size: 19.1 kB

Release files / english2kana-0.1.5.tar.gz

Download URL english2kana-0.1.5.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
676cf8cb50a5989bb1417fae5fec6b7cd2d536b9d85abb35f0d3964a2a522939
BLAKE2b-256 checksum
How to use checksums
5164654ee5949cb2eb2f4ce402b1ba0a75bf9ee3395a9946510431aa0df28a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.8.16 Darwin/22.3.0

Release files / english2kana-0.1.5-py3-none-any.whl

Download URL english2kana-0.1.5-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f6ccfe056d24e4e9acdeb0211f77b20174fe54594a3d07145433071cfa2777a
BLAKE2b-256 checksum
How to use checksums
b9f7953bbdae75e0fa922420ffb1bed6ed42d2516b2c6a34712aa713c2a6ee20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.8.16 Darwin/22.3.0

Release history Release notifications | RSS feed

This release

0.1.5 This release

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