Skip to main content

A python binding for mecab-ko

Project description

python-mecab-ko

A python binding for mecab-ko

Installation

Using pip:

$ pip install python-mecab-ko

This library currently provides binary wheels on Linux and macOS platforms. If you are using other platforms, you need the following prerequisites to build from source:

  • C++14 compatible compiler
  • Python header files
  • mecab-ko
    • This repository provides a convenience script at scripts/install_mecab_ko.py to install mecab-ko

Usage

import mecab
mecab = mecab.MeCab()

mecab.morphs('영등포구청역에 있는 맛집 좀 알려주세요.')
# ['영등포구청역', '에', '있', '는', '맛집', '좀', '알려', '주', '세요', '.']

mecab.nouns('우리나라에는 무릎 치료를 잘하는 정형외과가 없는가!')
# ['우리', '나라', '무릎', '치료', '정형외과']

mecab.pos('자연주의 쇼핑몰은 어떤 곳인가?')
# [('자연주의', 'NNG'), ('쇼핑몰', 'NNG'), ('은', 'JX'), ('어떤', 'MM'), ('곳', 'NNG'), ('인가', 'VCP+EF'), ('?', 'SF')]

mecab.parse('즐거운 하루 보내세요!')
# [
#     ('즐거운', Feature(
#         pos='VA+ETM', semantic=None, has_jongseong=True, reading='즐거운',
#         type='Inflect', start_pos='VA', end_pos='ETM',
#         expression='즐겁/VA/*+ᆫ/ETM/*')),
#     ('하루', Feature(
#         pos='NNG', semantic=None, has_jongseong=False, reading='하루',
#         type=None, start_pos=None, end_pos=None,
#         expression=None)),
#     ('보내', Feature(
#         pos='VV', semantic=None, has_jongseong=False, reading='보내',
#         type=None, start_pos=None, end_pos=None,
#         expression=None)),
#     ('세요', Feature(
#         pos='EP+EF', semantic=None, has_jongseong=False, reading='세요',
#         type='Inflect', start_pos='EP', end_pos='EF',
#         expression='시/EP/*+어요/EF/*')),
#     ('!', Feature(
#         pos='SF', semantic=None, has_jongseong=None, reading=None,
#         type=None, start_pos=None, end_pos=None,
#         expression=None))
# ]

CLI

This library also provides several command-line interfaces:

  • python3 -m mecab
  • python3 -m mecab dict-index
  • python3 -m mecab dict-gen
  • python3 -m mecab cost-train

Acknowledgments

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

python-mecab-ko-1.2.5.tar.gz (9.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python_mecab_ko-1.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (570.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

python_mecab_ko-1.2.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (550.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

python_mecab_ko-1.2.5-cp311-cp311-macosx_11_0_arm64.whl (599.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

python_mecab_ko-1.2.5-cp311-cp311-macosx_10_9_x86_64.whl (612.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

python_mecab_ko-1.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (571.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

python_mecab_ko-1.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (550.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

python_mecab_ko-1.2.5-cp310-cp310-macosx_11_0_arm64.whl (599.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

python_mecab_ko-1.2.5-cp310-cp310-macosx_10_9_x86_64.whl (612.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

python_mecab_ko-1.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (572.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

python_mecab_ko-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (552.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

python_mecab_ko-1.2.5-cp39-cp39-macosx_11_0_arm64.whl (599.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

python_mecab_ko-1.2.5-cp39-cp39-macosx_10_9_x86_64.whl (612.8 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

python_mecab_ko-1.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (571.2 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

python_mecab_ko-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (549.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

python_mecab_ko-1.2.5-cp38-cp38-macosx_11_0_arm64.whl (599.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

python_mecab_ko-1.2.5-cp38-cp38-macosx_10_9_x86_64.whl (612.7 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

python_mecab_ko-1.2.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (573.6 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

python_mecab_ko-1.2.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (557.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

python_mecab_ko-1.2.5-cp37-cp37m-macosx_10_9_x86_64.whl (611.3 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file python-mecab-ko-1.2.5.tar.gz.

File metadata

  • Download URL: python-mecab-ko-1.2.5.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for python-mecab-ko-1.2.5.tar.gz
Algorithm Hash digest
SHA256 77fbcf143d880be78d7c59ad542163d735d675fcebeb8e566d9ed647fed14965
MD5 16f5b464b533efdf81fe8fe158e5bf9f
BLAKE2b-256 3fb90016b991571feed7d6cbc1767b4b48c544d2001a0463e766d8b9fd78401b

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09d814ec46e40f35c3024b7aa1bd1d4ec51d5c7197ebab8c038894e957ac2516
MD5 52a8a4ab8117ae50625f08f83c7cd7a0
BLAKE2b-256 922d6a96b3daad0121330aeb0017f3651af3fd44a8edccfcab2d351c052d8b9e

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 119c271fcd536bceb0db74ab9cf34f853f6c5342e7b0d343b76b8f812dfaab90
MD5 d0a8ede913731b1c32f785d08d189d40
BLAKE2b-256 4a446576cbda7ecfcac6d187056d6b3a3c93faac67e4eb1c4fa10b4b253c5357

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1228b72f6adc79739eee580c0272ee36d70fb25e1300832090b1511796cb9cb9
MD5 7234c80c1c191288513f0388c0e06b7e
BLAKE2b-256 a4c4703e912e89f4a6561614ff5b6154776cdc138d9b3d0c0c01a4e3daf1a6b1

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7f9f23e34af90b4b03e662c4253ff37e66ea4fa32479ca786a3fb62f2a4c4b7e
MD5 d5f8362416808de2262297636ab0d156
BLAKE2b-256 e3cc35e3ca36c4f6ac322d71d5cddfa9e60d4dd1b374e3e124df41aeb6b22297

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0fced7c718be9ba9930e64abec100ea99c97a77cbd7c8a5fa0395ef20e2e7ed0
MD5 028abb5200ed72502e5baa2c09d338e0
BLAKE2b-256 cc5bf79f9c266f88134c64e9169493de7312b6b58acc8485fac835a011de6c2a

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b9d3587f606df143ce3e73859062419a60dc211a1331afd686fd6fa3e5d66d1d
MD5 6ed0a95fcd8bb2d583d2d0212963cba0
BLAKE2b-256 99d4f6f723730853f5974213692941a9cae2eb180122c0240ae8c5bcb0e058a6

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bb55f22922c8ea23a886061a2cdc42fc6284d4c07506ac632bab7525fcc679a
MD5 70e87c1bd515358d74deb7d4c12dd69a
BLAKE2b-256 05a160e7cb62bb1840094b2c6190d0c74ff7f04c77190c5bb7b9fdf13647dba6

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2f58216e19fa561c94d6e849dffbb063222bf7c2da787eb30ea6cae27d937c48
MD5 73cdceed47cbe7ba5f734675ba6168a6
BLAKE2b-256 7fa714a1917d9b025fa5e30ba43644dc5ab391597302b0a74ed249d4a11c15a9

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a89b2d2b71a00ec415fa5d8150231a96e31c340a1f6da84e61adb4fd2ef15077
MD5 598058801a8dfd38141a9263d6281e41
BLAKE2b-256 cd4e39e37d04b009110dda36e0424f269bdfd58602829602f486e86221784503

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7944b718a03fc810653e0b674df0011f230999cfea40724d6fd88628e8a1b9e6
MD5 c94206c1d4f872654b40f232390de19c
BLAKE2b-256 cfb04154172416fa6d4df07630198a723e5737c946cc7e7c03a305afbecdac5f

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbe36d541a635354a25775f9a0d64288b7849c48022597f1eca22b317aa8f58e
MD5 94b4a25c43d14ef18df3a44df74bb0b6
BLAKE2b-256 381d3a76afccd5ddad40b2c7181c813c803bc79336faa3ff8f74e08213057bbd

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 562f317df63c37b0654a62e540157472628faadc5302fdb26c91381830330a6a
MD5 95a04db75e8d7b2d82841a41f2914c05
BLAKE2b-256 0b0fbcc117280a4b8670114a7ceaaaa71e03ff3cf6a404ad63c40d3cab541004

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 25359874e250735da236a3498af34f87948edafc4ab4b7cacb8772ade5c30fb7
MD5 bb57eed87cd48e864a28fc26a7804e38
BLAKE2b-256 da73b35c6cc036dc08de41288e6aaef25957c4123f0f3d384149bc50cfb284e6

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f697ca685267de98aeaa03d40b2eb91f7666cdbdb2cd7af90ad29ad306fd222b
MD5 336a715c802786fc06b42eb2844c8818
BLAKE2b-256 25c4932daf49e5c03b73da604087da85a42a10fbc23ab39370850daf4b2dc313

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d3c7ac28187b31416c53c8bffa590397d400bfcc310703186837dc7da6da167
MD5 86d80c115aaedf5ec9b0e047545cd1fd
BLAKE2b-256 6c57200731926be72deee62851b6a8e38ccb59ac3056af75c7f31dd327ef5dbc

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d0b39559c232edcc05b815d6d23b5b1c5ef12c45edb6d780917dc75ae6c45fb0
MD5 ccbdc657ada7da039d152ed3351c80ea
BLAKE2b-256 f64db9fd10d15812b88ca9f10fee80b64575875867876b7af5e65faf2e3372c5

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67c2f68687507e6250c4944ac46d29e2b8601f0eb9e41fb7abb0ba7b4044bb65
MD5 e2a2f64ff7991c71d4883642a068335f
BLAKE2b-256 3e7d28028794da54eb3989fb8465236029cb7d23d3285e37983a37b5de6afea4

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 661e1875d6ff93a2a8bddcb8fd165c3ba840d02dc90c020df224016d702eb4fd
MD5 3cad7b95f78e8637f371b3d8f22f1e70
BLAKE2b-256 4e2ac07b48417c6641912d03ffb3c370d07c3599e50e0b2074311c089f235093

See more details on using hashes here.

File details

Details for the file python_mecab_ko-1.2.5-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for python_mecab_ko-1.2.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 152d642ee8db9f7f5578363c48e14abb9ba28f9cf66216da2f6f332f35aab484
MD5 64cf06ef91eea382cf3e5b3c2de726fb
BLAKE2b-256 5617cb2b332e1003902d75c8ceffa3062dee4b6992453119e9825e9bad9ae9d7

See more details on using hashes here.

Supported by

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