Skip to main content

UniDic packaged for Python

Project description

unidic-py

This is a version of UniDic packaged for use with pip.

Currently it supports 2.3.0, the latest version of UniDic. Note this will take up 2GB on disk after install. If you want a small package, try unidic-lite.

After installing via pip, you need to download the dictionary using the following command:

python -m unidic download

Example use with fugashi, though mecab-python3 works the same way:

import fugashi
import unidic
tagger = fugashi.Tagger('-d{}'.format(unidic.DICDIR))
# that's it!

License

The modern Japanese UniDic is available under the GPL, LGPL, or BSD license, see here. UniDic is developed by NINJAL, the National Institute for Japanese Language and Linguistics.

The code in this repository is not written or maintained by NINJAL. The code is available under the MIT or WTFPL License, as you prefer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unidic-1.0.0a2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file unidic-1.0.0a2.tar.gz.

File metadata

  • Download URL: unidic-1.0.0a2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for unidic-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 ddb1b8b2ad65fd0b6d742bf95293c2efb0a08ea515d30291f464cf2f5bad3ed6
MD5 fe54d556511f8b28c20dbc8b661429fe
BLAKE2b-256 63a88454624b8f569650bfda44374e9fd5d147d23dacf21d31a4be116a357d90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page