mozcpy


Namemozcpy JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/ikegami-yukino/mozcpy
SummaryMozc for Python: yet another Kana-Kanji converter
upload_time2023-12-11 16:34:10
maintainer
docs_urlNone
authorYukino Ikegami
requires_python
licenseMIT License
keywords kana-kanji converter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            mozcpy
==========
|circleci| |pyversion| |version| |license|

Mozc 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
  # => ['もう なに も こわく ない']

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.


.. |circleci| image:: https://dl.circleci.com/status-badge/img/gh/ikegami-yukino/mozcpy/tree/master.svg?style=svg
        :target: https://dl.circleci.com/status-badge/redirect/gh/ikegami-yukino/mozcpy/tree/master

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ikegami-yukino/mozcpy",
    "name": "mozcpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Kana-Kanji converter",
    "author": "Yukino Ikegami",
    "author_email": "yknikgm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/99/ad/727700ecd63d8e30c227bd2914fd01dd507e0903366a0d6ad59e211c9f80/mozcpy-0.2.tar.gz",
    "platform": "POSIX",
    "description": "mozcpy\n==========\n|circleci| |pyversion| |version| |license|\n\nMozc for Python: yet another Kana-Kanji converter\n\nINSTALLATION\n==============\n\n::\n\n $ pip install mozcpy\n\n\nUSAGE\n============\n\n.. code:: python\n\n  import mozcpy\n\n  converter = mozcpy.Converter()\n  converter.convert('\u307e\u307b\u3046\u3057\u3087\u3046\u3058\u3087')\n  # => '\u9b54\u6cd5\u5c11\u5973'\n  converter.convert('\u307e\u307b\u3046\u3057\u3087\u3046\u3058\u3087', n_best=10)\n  # => ['\u9b54\u6cd5\u5c11\u5973', '\u9b54\u6cd5\u6d88\u9664', '\u9b54\u6cd5\u7701\u6240', '\u9b54\u6cd5\u5c0f\u6240', '\u9b54\u6cd5\u6607\u53d9', '\u9b54\u7832\u5c11\u5973', '\u30de\u30db\u30a6\u5c11\u5973', '\u9b54\u6cd5\u8a3c\u6240', '\u9b54\u6cd5\u8cde\u6240']\n\n  converter.convert_wakati('\u3082\u3046\u306a\u306b\u3082\u3053\u308f\u304f\u306a\u3044')\n  # => '\u3082\u3046 \u4f55 \u3082 \u6016\u304f \u306a\u3044'\n  converter.convert_wakati('\u3082\u3046\u306a\u306b\u3082\u3053\u308f\u304f\u306a\u3044', n_best=3)\n  # => ['\u3082\u3046 \u4f55 \u3082 \u6016\u304f \u306a\u3044', '\u3082\u3046 \u4f55 \u3082 \u3053\u308f\u304f \u306a\u3044', '\u3082\u3046 \u4f55 \u3082 \u6050\u304f \u306a\u3044']\n\n  converter.wakati(\"\u3082\u3046\u306a\u306b\u3082\u3053\u308f\u304f\u306a\u3044\")\n  # => '\u3082\u3046 \u306a\u306b \u3082 \u3053\u308f\u304f \u306a\u3044'\n  converter.wakati(\"\u3082\u3046\u306a\u306b\u3082\u3053\u308f\u304f\u306a\u3044\", n_best=10)  # duplicatetions are ignored\n  # => ['\u3082\u3046 \u306a\u306b \u3082 \u3053\u308f\u304f \u306a\u3044']\n\nFOR DEVELOPER\n===============\n\nThis module uses Git LFS to pull dictionary files.\n\nACKNOWLEDGEMENT\n=================\n\nThis module relies on Mozc and MeCab.\n\n- . 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.\n\n- . 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.\n\n\n.. |circleci| image:: https://dl.circleci.com/status-badge/img/gh/ikegami-yukino/mozcpy/tree/master.svg?style=svg\n        :target: https://dl.circleci.com/status-badge/redirect/gh/ikegami-yukino/mozcpy/tree/master\n\n.. |pyversion| image:: https://img.shields.io/pypi/pyversions/mozcpy.svg\n\n.. |version| image:: https://img.shields.io/pypi/v/mozcpy.svg\n    :target: http://pypi.python.org/pypi/mozcpy/\n    :alt: latest version\n\n.. |license| image:: https://img.shields.io/pypi/l/mozcpy.svg\n    :target: http://pypi.python.org/pypi/mozcpy/\n    :alt: license\n\n\nCHANGES\n=======\n\n0.2 (2023-12-12)\n-----------------\n\n- Update the dictionaries\n- Fix Windows MeCab args problem (thanks @Bye-lemon)\n- Support Python 3.11 and 3.12\n\n0.1.1 (2023-01-06)\n------------------\n\n-Fix install problem\n\n0.1 (2022-08-22)\n------------------\n\n- First release\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Mozc for Python: yet another Kana-Kanji converter",
    "version": "0.2",
    "project_urls": {
        "Homepage": "https://github.com/ikegami-yukino/mozcpy"
    },
    "split_keywords": [
        "kana-kanji",
        "converter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99ad727700ecd63d8e30c227bd2914fd01dd507e0903366a0d6ad59e211c9f80",
                "md5": "e68c4478db91eb0c5fe0f2691a6bc15d",
                "sha256": "58d20f87cb4758461d89c9a7c63a7f41d66af9df22c7b90fb515505f9fa35b34"
            },
            "downloads": -1,
            "filename": "mozcpy-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "e68c4478db91eb0c5fe0f2691a6bc15d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 42677853,
            "upload_time": "2023-12-11T16:34:10",
            "upload_time_iso_8601": "2023-12-11T16:34:10.236076Z",
            "url": "https://files.pythonhosted.org/packages/99/ad/727700ecd63d8e30c227bd2914fd01dd507e0903366a0d6ad59e211c9f80/mozcpy-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-11 16:34:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ikegami-yukino",
    "github_project": "mozcpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "circle": true,
    "requirements": [],
    "test_requirements": [],
    "lcname": "mozcpy"
}
        
Elapsed time: 0.60576s