Metadata-Version: 2.4
Name: mozcpy
Version: 0.3.0
Summary: Kana-Kanji Converter using Mozc dic
Author-email: Yukino Ikegami <yknikgm@gmail.com>
Maintainer-email: Yukino Ikegami <yknikgm@gmail.com>
Project-URL: Homepage, https://github.com/ikegami-yukino/mozcpy
Project-URL: Repository, https://github.com/ikegami-yukino/mozcpy.git
Keywords: Kana-Kanji converter,Mozc,MeCab,japanese,JapaneseText
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: Japanese
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Text Processing
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: mecab
Requires-Dist: medie
Dynamic: license-file
Dynamic: requires-dist

mozcpy
==========
|pyversion| |version| |license|

Mozc dictionary reader for Python: yet another Kana-Kanji converter

INSTALLATION
==============

::

 $ pip install mozcpy


USAGE
============

.. code:: python

  import mozcpy

  converter = mozcpy.Converter()
  converter.convert('まほうしょうじょ')
  # => '魔法少女'
  converter.convert('まほうしょうじょ', n_best=10)
  # => ['魔法少女', '魔法消除', '魔法省所', '魔法小所', '魔法昇叙', '魔砲少女', 'マホウ少女', '魔法証所', '魔法賞所']

  converter.convert_wakati('もうなにもこわくない')
  # => 'もう 何 も 怖く ない'
  converter.convert_wakati('もうなにもこわくない', n_best=3)
  # => ['もう 何 も 怖く ない', 'もう 何 も こわく ない', 'もう 何 も 恐く ない']

  converter.wakati("もうなにもこわくない")
  # => 'もう なに も こわく ない'
  converter.wakati("もうなにもこわくない", n_best=10)  # duplicatetions are ignored
  # => ['もう なに も こわく ない']

  converter.search_prefix("まどかま", n_best=1)
  # => ['まどかマギカ']

  converter.dict_version()  # version of included dictionary (Mozc repository's tag)
  # => '3.34.6239'

NOTE
===============

The author has no affiliation whatsoever with Google. Furthermore, the mozcpy is an unofficial project.

FOR DEVELOPER
===============

This module uses Git LFS to pull dictionary files.

ACKNOWLEDGEMENT
=================

This module relies on Mozc and MeCab.

- T\. Kudo, T. Hanaoka, J. Mukai, Y. Tabata, H. Komatsu. 2011. Efficient dictionary and language model compression for input method editors. In Proceedings of the Workshop on Advances in Text Input Methods (WTIM 2011), pp 19-25.

- T\. Kudo, H. Komatsu, T. Hanaoka, A. Mukai, Y. Tabata, K. Yamamoto, Y. Matsumoto. 2004. Applying Conditional Random Fields to Japanese Morphological Analysis. In Proceedings of the EMNLP 2004, pp 230-237.


.. |pyversion| image:: https://img.shields.io/pypi/pyversions/mozcpy.svg

.. |version| image:: https://img.shields.io/pypi/v/mozcpy.svg
    :target: http://pypi.python.org/pypi/mozcpy/
    :alt: latest version

.. |license| image:: https://img.shields.io/pypi/l/mozcpy.svg
    :target: http://pypi.python.org/pypi/mozcpy/
    :alt: license

CHANGES
=======

0.3.0 (2026-10-19)
-------------------

- Add search_prefix method
- Add dict_version method
- Support Python 3.13, 3.14 and 3.15
- Update the dictionaries

0.2 (2023-12-12)
-----------------

- Update the dictionaries
- Fix Windows MeCab args problem (thanks @Bye-lemon)
- Support Python 3.11 and 3.12

0.1.1 (2023-01-06)
------------------

-Fix install problem

0.1 (2022-08-22)
------------------

- First release
