A python binding for mecab-ko
Project description
python-mecab-ko
A python binding for mecab-ko
Help
See documentation for more details.
Installation
Using pip
:
$ pip install python-mecab-ko
Usage
To perform morpheme analysis, you need to make a MeCab instance first:
>>> from mecab import MeCab
>>> mecab = MeCab()
To extract morphemes in a given sentence, use mecab.morphs()
:
>>> mecab.morphs('영등포구청역에 있는 맛집 좀 알려주세요.')
['영등포구청역', '에', '있', '는', '맛집', '좀', '알려', '주', '세요', '.']
To extract nouns in a given sentence, use mecab.nouns()
:
>>> mecab.nouns('우리나라에는 무릎 치료를 잘하는 정형외과가 없는가!')
['우리', '나라', '무릎', '치료', '정형외과']
To perform a morpheme analysis on a given sentence, use mecab.pos()
:
>>> mecab.pos('자연주의 쇼핑몰은 어떤 곳인가?')
[('자연주의', 'NNG'), ('쇼핑몰', 'NNG'), ('은', 'JX'), ('어떤', 'MM'), ('곳', 'NNG'), ('인가', 'VCP+EF'), ('?', 'SF')]
If you would like to obtain detailed morpheme analysis results, use mecab.parse()
:
>>> mecab.parse('즐거운 하루 보내세요!')
[
Morpheme(span=Span(start=0, end=3), surface="즐거운",
feature=Feature(
pos="VA+ETM", semantic=None, has_jongseong=True, reading="즐거운",
type="Inflect", start_pos="VA", end_pos="ETM", exprssion="즐겁/VA/*+ᆫ/ETM/*",
),
),
Morpheme(span=Span(start=4, end=6), surface="하루",
feature=Feature(
pos="NNG", semantic=None, has_jongseong=False, reading="하루",
type=None, start_pos=None, end_pos=None, exprssion=None,
),
),
Morpheme(
span=Span(start=7, end=9), surface="보내",
feature=Feature(
pos="VV", semantic=None, has_jongseong=False, reading="보내",
type=None, start_pos=None, end_pos=None, exprssion=None,
),
),
Morpheme(
span=Span(start=9, end=11), surface="세요",
feature=Feature(
pos="EP+EF", semantic=None, has_jongseong=False, reading="세요",
type="Inflect", start_pos="EP", end_pos="EF", exprssion="시/EP/*+어요/EF/*",
),
),
Morpheme(
span=Span(start=11, end=12), surface="!",
feature=Feature(
pos="SF", semantic=None, has_jongseong=None, reading=None,
type=None, start_pos=None, end_pos=None, exprssion=None,
),
),
]
Acknowledgments
- APIs are inspired by
KoNLPy
Project details
Release history Release notifications | RSS feed
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.3.2.tar.gz
(11.6 kB
view hashes)
Built Distributions
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7debb5db2e7dfe0f4a5402089de3de6ad4874462db5fcd7cd3e2a5895f49bcb1 |
|
MD5 | 662963cc5dc34dd1f312c7c9fbbb7a36 |
|
BLAKE2b-256 | fcefe79aa7055ef2ac7f7c054c880b42d70c1e7d3bed999b63bac0d706a24447 |
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728190a503f3c5023eccbba4852e575b247021117e2d40a25ed995ec903bebee |
|
MD5 | 19130ff845f82a451c3ca31a5982802f |
|
BLAKE2b-256 | 690181150dd139c8e4f4bc7fd6fe7e541754cbe1ac46aad44646077c1505bcd1 |
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7498247e27bdc27eb50fda725fbacdc70808f00e95a825c41e8569a0b6cf07 |
|
MD5 | 9f65db02603d1daa72a86d18e4112730 |
|
BLAKE2b-256 | 5320b6e8ba2a8eaa9fbf9f1220ea6871f3db1e3950b4860782f0d39d6af7423b |
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c4827a1333631ae51ab54bf1751e7cf287fc825d1f410c6253d55acc2431a5 |
|
MD5 | 6d21b9f9179ff8d3467e8990ce819b52 |
|
BLAKE2b-256 | b37518adeb5ac0b8cf097454504f2f0d2a08a24043174dbf54ab88c905983853 |
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6fa69395b7c4ccf4db61c5c2e59aa980fe3aae50576a4732581d7580b0af7a9 |
|
MD5 | 5e6d1a0391c48fbb18359d67e56dd1e5 |
|
BLAKE2b-256 | eca0dafc0e0c4a0d961c4dac07c9010199bcdb4ebb0603e75c9ec06412b9fc7b |
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ecbbc1b84d131fef486483d5ae9ac3ca4b91439c4efbfa42865ee95962193c |
|
MD5 | 4ccf2bab5774be5c6cd5e1c4537d1fce |
|
BLAKE2b-256 | 79cb3ea315a9ea5650aa1498624374b7e149f8c30747e71422412f3511f866b4 |
Close
Hashes for python_mecab_ko-1.3.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bdc69d2063f5bc2c3692b2d78dc227c92641635927168d447f32da24964bc26 |
|
MD5 | 7affebe519ef0401b98af71466809f06 |
|
BLAKE2b-256 | a055024b45d3b69429ece80af5a7b3601735e45557ef9aae152966d593b5f8d4 |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f304b390d2fbcc4420bb91cb7130496b1f059a5dfcf580dd5a09661fc275d580 |
|
MD5 | f5ac59c5d78921045d9c13018fa72bcf |
|
BLAKE2b-256 | 50f885fc381ac24af01ef722e1ac1c8f4b72bd431fd927f8ff5d362f498aa3ee |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19266f2adb56b773d5a6702f0a480e007da689e298a746e23d9376d47efca4e6 |
|
MD5 | 7d79feb83223f10df0017470fc369b6d |
|
BLAKE2b-256 | 3e9d86903c0184734f83e07e54a79621007a889b6ccc39fbae58ab7402f77fce |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1171dc936646d094df3a8c296b10418250c275ccb46ef3c040edc8f5715384a9 |
|
MD5 | 15615334c2392c21ca6b9b3d7e1d8e47 |
|
BLAKE2b-256 | a088f4fe8e41c683985b16443d86040f40a324e9c0f934ebfd33160087809229 |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f03f9ff35471298ddc8b2b89500f39af677c41c6b3abe7c98219f6e894bbd0 |
|
MD5 | 73a784afb791d768309988f6aceaec6a |
|
BLAKE2b-256 | a3a021ab0471f828be07797c17464b63b180190068d04d2f29736b07e97be9d4 |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4032fe055674559394e69054b5ece784bfa5885e54b8edf1a1d5950271c3148 |
|
MD5 | 4bb66b96dc8b991afe291ec598e6907d |
|
BLAKE2b-256 | 4141508857ebff78bd22776fcd89d0a8bbb092d52e6c56ce05254828997dccd8 |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04f6bd80abaeb761d11cd1a9dab2c1eff02e0bb480ab77bc74f7fb4d97829d1 |
|
MD5 | e0a26325f8589eb9eba59ac7c1628623 |
|
BLAKE2b-256 | 81255b0a9bf2a7191144fd34d266f5df92f57ceaa290c618469d4d47fc589db0 |
Close
Hashes for python_mecab_ko-1.3.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8e0075422841fedbe9940bbb953a7da47947d751adb56dcb31fe88ea20f35f0 |
|
MD5 | 2ca5dd8279776cbb4b7d5674466154bf |
|
BLAKE2b-256 | 1b4b746129d41401a20141d88b123bfecc3855fef4a8ba6f46818431c4345d6e |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e640368a3994158d76daf911523c6dc664a982e0e2ef3225f2d22b7535f4f573 |
|
MD5 | 911198220c940b4f1c498d48c96d198f |
|
BLAKE2b-256 | de4d53a3c08f57e2cc150b473c6aa927e4978c072628d014319bea8d41c48782 |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c113454b0744817c0acbb23968b09521a5068f2e1680c20f9e6c39a240dd992 |
|
MD5 | 121acc7e4d2b5ac5c6871b6ed809b0a5 |
|
BLAKE2b-256 | adc8f1bebede869c88f20a809b77178591a9ead14d45667be78fe3281a2447fb |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4460e7919b27a7c776b6d0f9a69c29d0a59fd43aeac4db7cec84a9e947295b7c |
|
MD5 | e63e56b5c44d127365b5062082d5c98b |
|
BLAKE2b-256 | 254b62e1d3d3a103b301dab90999a73180866e3613459fe4a2f7b305c658b839 |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3682cdb43bf1e2f085d0e2d6a7d9a3abefeb45f3483ae242032bccf917c10e1 |
|
MD5 | 2444f5925cda873db48908c053c9daf7 |
|
BLAKE2b-256 | 1adf881d7981467acbed5909551b263578af1815a11e5dc31c4d5b0781ddbe0f |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff89d552bbfd807e59852ed5c19c82b9b8d90db055eca0d924fc2fa417dce27 |
|
MD5 | cb057f2fd25406450093a56e5829482f |
|
BLAKE2b-256 | e1a7f88ee4164f091668f784a2c72414c418549bb825afb86fed883a06b20311 |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3808ceeeb362f5121cda5dd37324c42ae2cebec446fb3899eb746c0ea8d30ef2 |
|
MD5 | 72c6315319753dfb03d74886535e869a |
|
BLAKE2b-256 | a1c2e3cc4baff60592632bc72686f142792a937fe6878c1900907d7d56a40a5c |
Close
Hashes for python_mecab_ko-1.3.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8121d0bee2faa6aede3bb22e9a69af3a00d85bcc2b2579068c6cfe1e64d258c0 |
|
MD5 | 95cc8bffb9f4f5953627429cd941d540 |
|
BLAKE2b-256 | ad0988588bfe2f6970404a47d4b3d14bf777cb30ade129f028c9c26ea42cdb59 |
Close
Hashes for python_mecab_ko-1.3.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38254a152caffce23fc877cfe2fcd9a3a09ed706ea21cd68bae9d5400695f4e |
|
MD5 | 62a7dd4859284042d2766e2ea902130a |
|
BLAKE2b-256 | 0c127f7aba74c9724e83356446d57421c8a85267bc3d3cc1389a33e9f9963bb5 |
Close
Hashes for python_mecab_ko-1.3.2-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4596a85bf5f53262bbd20c1d2a9932350795962c600c80447d17041f5b74f93 |
|
MD5 | aaacbec00b34539def9edc6821fea5e0 |
|
BLAKE2b-256 | f957318ac8d063eeb7881914e4520a7b3f2b4c6eaf7138646139152704891bff |
Close
Hashes for python_mecab_ko-1.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 462d6d24b622a0037f68fb779142fb38a44ce585a38b986e502d884cfb19ab47 |
|
MD5 | f1f34bcc6889e2322e84cbadeac6a113 |
|
BLAKE2b-256 | 46ce6805c1d0fec8ac97d1ea6467630c2b730174ae84e2afbff2f865662b9f27 |
Close
Hashes for python_mecab_ko-1.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcc8cb73f92316e793a06975123f8e511edcc2be6cbef8bd6163fcbc33f9bec |
|
MD5 | 37ac33b88b2ef082ee48cf01c580cdf5 |
|
BLAKE2b-256 | d9c222bd17b92f13e342309e591cd73cfdbbf0c6cb7de6af2f533e807f3b1ea2 |
Close
Hashes for python_mecab_ko-1.3.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61476bd06d6e0b2eff10e70ffc01a6842d924f9e857c241cdada10254d8f5309 |
|
MD5 | 1bdabd16eccedc441ad4ee1e13bfa454 |
|
BLAKE2b-256 | c6358e0762e7f80791e71f0ca220a0ce6c85edb9d0257f6b73b944c4ecde9a93 |
Close
Hashes for python_mecab_ko-1.3.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e10289eb57623e248ca26988d3e0fb724bd023c0757a25f8049b9763a14bf4a3 |
|
MD5 | f1c8488cebb59d276923a44fe7df7e8f |
|
BLAKE2b-256 | 23523ea853a3f20646f656c54486e67a29930d682831c89ed6ab98398ed49bb9 |
Close
Hashes for python_mecab_ko-1.3.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8b8b6696d668eddcc24c2f18d02b9082fc5a96207744e9c7d2dcd86cf7a116f |
|
MD5 | 8a07839413807297f436af6609a5034d |
|
BLAKE2b-256 | 4c6dee627c5a0e91a5755a297644cb6bfd6726a06d34a518a63a3aa1b8dab4f4 |
Close
Hashes for python_mecab_ko-1.3.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f44d7fb4a9e515f1a370325ee44271834889ae479beacd33fd9c6a61111d2a |
|
MD5 | 7876dd7d94886d92055a42693fd5f66e |
|
BLAKE2b-256 | 814540d3507c3da966f2fdb19c4874877e3bd8246b3992e6782ef32cfc77c5f7 |
Close
Hashes for python_mecab_ko-1.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5ab1eeae3d0afe3b9aaf425330166aeee527f7d50600a8ad02daaff2416be0 |
|
MD5 | 7644de41fbd84656e8f0e6699e31f5a1 |
|
BLAKE2b-256 | 07ea4d74d136fbd752f0111d488222b452ce61679cf4d2488e85dad94944c58b |
Close
Hashes for python_mecab_ko-1.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3678c8df59006e8dc794bd1f9f16e3d6385cf20a19b000e368c57a96af146b47 |
|
MD5 | ad34a1297101ebabfa89ba7c3c5a9fe2 |
|
BLAKE2b-256 | 7c109ebf57b776bb03f4ac3700dda7bae56aa314467d9d1d81a6c73af329df91 |
Close
Hashes for python_mecab_ko-1.3.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e923b6e9e6dd928b299506abe0b74371c45a381844ae5608d223072f766883d2 |
|
MD5 | d946e1d2662c416078629041e1484b6b |
|
BLAKE2b-256 | 1ba7b7971fec7ff7abc85a466dddc733b390988c0f74af06159a1a4799047a63 |