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.3.tar.gz
(11.7 kB
view hashes)
Built Distributions
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29691f30f147999aae214b88ea00575ef6a881f5006bb0290b0b010bfe9f8007 |
|
MD5 | 866948db50164b663dc82aa97e7f20d9 |
|
BLAKE2b-256 | b0f822b20da800247f39f685cf343d3ef5222333e7fcd6c2e354914090dbbf7c |
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c5c58133ecd2e9f194fb4406563c1d512073307719e84ab40ad951a67a6c9aa |
|
MD5 | 0091114316b027b88e83a8b7612c1887 |
|
BLAKE2b-256 | ffff037fae298f622d1194e7eb8b30c3beab5fd2bb68b9db9ebd372bdf631200 |
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a1b73dce41814ada0ada045588c2db24bb33920bda1993ec6c4b634d3a86a2 |
|
MD5 | 063b54a06edeae339c386c4bfa1bf392 |
|
BLAKE2b-256 | dde63891d84e9a7dbf0849377fe575fbb4bb5ba91f98c5c01a85f12600635d6b |
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aefc8debd5e2ff48f063b211793c0d57adf15a95081ee28637b2a56ad244c379 |
|
MD5 | ae20bf750a89dca642324623118093ff |
|
BLAKE2b-256 | 4151f69371d1de799ad3d960f0cf195e95fdcaeedc486d917409e3d562acbc74 |
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d9eaff643f4ddc04097183160dcda38e660de8352d432d49ded2bb6c95b196 |
|
MD5 | cb2fa387f4ccdf07cbda8517023c6f93 |
|
BLAKE2b-256 | 6a947c3ae6a9a7c54f7129e9de906efd8b4aa43c8d929f635c0ac056fdcf5b67 |
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71aa630eff9ec26f510a88d7a9adee8ee402f9fbfd78a31d2b983b96f073ded8 |
|
MD5 | 817bed7cd6ed9577dd559f501f75f051 |
|
BLAKE2b-256 | 041a93f056d4ac8c262dc832f823a8754d2505e28cf0f56f7c94afcba477a685 |
Close
Hashes for python_mecab_ko-1.3.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22cb82a2c2653da0825f4a1df84d6f94a43d86310f229e896914a361532e6267 |
|
MD5 | dd5f897537510848da281b65859edfb6 |
|
BLAKE2b-256 | 8c2a4114e13e1f61ab30e47b6c95ea722ac5169a24082d34073c1eb87aaee318 |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2ada14b91902f1d339b659b159a20514362014434a901166f1ab444a2b046a |
|
MD5 | b8dcb2d7379eb5c17272205a98010aa3 |
|
BLAKE2b-256 | f991962acc3407c95872e5cfcb604b0d22a025d58db1752dad12870237a0103f |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c62dc19bc59063302108eef453638e86bb3f5082c5308ccb5dd0445e32c0b27 |
|
MD5 | 53eee42e49be92d3bded2db6168d4c36 |
|
BLAKE2b-256 | d6d50b8b897eeedcf2049f81e2bb5dd3e533c394cc5fa22320103ef5d36ddfca |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66689f302f6a7d6eb30e32df1811b5abc20a798cbc77316655dad4d6dd56bad3 |
|
MD5 | 9bc12a4e56c72386169d57d7b4d0eef4 |
|
BLAKE2b-256 | e07eb2bf6e9191d76a218792c3ca02b76d2ad140a393d90e6a4bd92adfda8ea4 |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9872415bd9b748a8f2d0c9b161d07d17ef2e381c6edeef9a9c685eea12985bf2 |
|
MD5 | d04ebfd33666f1ba91a1e385dd1e10d6 |
|
BLAKE2b-256 | e30f62d339406ad1d1600afdab45ecd359f6fdbaf705fd9bf10dfccbb601b4fd |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23606afc3db429b6ab3dcf455a05827e75caf909b2565c48d3061ca97b51ae57 |
|
MD5 | 6cfd14740addbd6a9df9e03af81bfc8b |
|
BLAKE2b-256 | 2a896187856481130e7edf13a8adc676aa4ae7ad0ddb3e80b2e21246cdd7dab1 |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a06b82062db0d202fe8c3f5cb63a21fe4dbd08048a1fdc261794e3789e296542 |
|
MD5 | e7c8c21e540a99047e67d2352e1f89f7 |
|
BLAKE2b-256 | e0334b0f5932b8e1ba31ca5a3335e8d74c11f8db319b5dcbdb6ca99cc3228c12 |
Close
Hashes for python_mecab_ko-1.3.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d040a332350b7833ccd7be3cbc3ad7606c0ef6a50fa7f06a301fca26bcf60800 |
|
MD5 | 9cfe20fe1c915a1d95c776ca766e2fd5 |
|
BLAKE2b-256 | 7cfc3b5293ebcd690d3efbf1ff35e9a46cba997461eecda091d4e559ca2c07d2 |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e52a89604d65943feb02b4393ad250f76e3c9e53da2a2ded5c3c5f61ee450c2a |
|
MD5 | c1ba361ee6e1e4620319fe7e8d40417b |
|
BLAKE2b-256 | 4e9b07e6b3754f802a895e8c11a83d0b6e793de30f81f0572badcc9cb904698f |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f54f85d9cd63d1c004304965925c0a9b4a6b54514e8890dd2d92d96e76ccc01c |
|
MD5 | 9b17d8c818cda1aae076e2619a1cdbb9 |
|
BLAKE2b-256 | 61e0b62bbd9691a3857daf67aa1088a9cf4e39008aea1575221dc185441c0148 |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a88997faff34fc2a093bb65def8ecd3f42658d658ad2c0a3c3fff285a091093b |
|
MD5 | 2e1a3a060704ccb7d41bda55f4b92c84 |
|
BLAKE2b-256 | 02ce0b6d1a6d3fed95be85cd348f7eb39713091ba7db52af933f21b90b267014 |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4def0347d2dc9f2e801a92c019a0b3f56ce16493fb4607733b326a96afeb5460 |
|
MD5 | c2eec0fb23d109cd7324ab78431ec6fe |
|
BLAKE2b-256 | d65410fda729cabc81db97cb6173fb4d1db1a3ba4a13e0a78d6cedc4ab2aef38 |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd577eaa0973b85ac133d099143248e627e43df1ff733f7aaf8a02d12a4b1eb |
|
MD5 | 7d69cafc0d30cee278235342accf931d |
|
BLAKE2b-256 | f9c84dcee6a3c9ea75a5339b72552348c903ff5e10f679204ca740578e00b439 |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d3dc2e332f2a3dbd4410364916cea7a19879c0187c695a0541c2584ef1bba7f |
|
MD5 | 1adb5497f937c40d010d8d38ba7f10e1 |
|
BLAKE2b-256 | 9b1d3d442c59ff774d1af1355f0bb3135fb2a12535b92d1f2b3b2435e579706d |
Close
Hashes for python_mecab_ko-1.3.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23e6d200c9f63d178ed6fb2f73ad8d979f294c67ae5701619c8aa0b22dd575d |
|
MD5 | f603d9ecf2aaa3371281fd98e234207f |
|
BLAKE2b-256 | cabe302a31192a1377d472580e397882bca4a2c333f034eced800fcb668923d7 |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceac00915b28c136346cc6c9106d9c69dcbd3c85af386afea600f93dbb286ec3 |
|
MD5 | 439f08d8ff6de138f0371ea8cba8e0d6 |
|
BLAKE2b-256 | d784475aac3a1d123094406aef1c268d6c5f164464ee9fb6e83e00c6229799db |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35614279104ec442cc2c132d5d6e69878ef7b70e6e3e97a6428da6b6964dab6b |
|
MD5 | c15785938df2f46f9cb41325219efd2b |
|
BLAKE2b-256 | 746c558139db6f19c56a85d6f69dfa647d8df5bb26bc6fe17e46449a2d752eb1 |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df054b2a0388806564193c7c2a48c86c43cfcf2321ff997b91f18e8755f89e2 |
|
MD5 | 16dc2f2647c08e84e47b3278af7585a3 |
|
BLAKE2b-256 | 7cf8bdb97544c5589c50562a7c04e10594d92206fe7307c026056120aca73579 |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a17c4ef89a28d6ae6e203173c82d88358de250acacba652b68d46749dd1022c9 |
|
MD5 | 15b342d6f4be10f677e4d7812a44a4a7 |
|
BLAKE2b-256 | bb4ebd1ea4e887fa1c41ffd6c22375ef3b9c006547953ec9c5c29f62840b5cc8 |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96813cfc68d7e9802fb46e6f1cda7195862e86110778e3f3c0650fbfead4f38c |
|
MD5 | 81ce19d5fb9127b3e8c8d9e8b27f23a7 |
|
BLAKE2b-256 | 3768c8d4011f09d3121f5e5d5d55b8ef36fc5fa88bbce05cc0bc9963186c98d8 |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f95c2abe66acdc3b1b0a4c0d9235b718cfca13ba860f82694ac632ee047c40 |
|
MD5 | 10e3323de7eebfebfe55769013397357 |
|
BLAKE2b-256 | 65cbee8c5964bd5f56a7d657345b7d6c361cb8a680d255c1cf0ee0a9a6486949 |
Close
Hashes for python_mecab_ko-1.3.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b594d27aa32ecfd8b5e0c86fb029a96dbac9b7b702f41ae3a5a49c79e904d7 |
|
MD5 | e4962c63fe2017f0c115a4463758d3c6 |
|
BLAKE2b-256 | 955df67f534f9e685b27a490582cd812621caa91612b57c9376c62a4929a4347 |
Close
Hashes for python_mecab_ko-1.3.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d9095b37e3c737703d7c35045cbe36c095dd36d25610a3b7d37af7bdb152346 |
|
MD5 | ab4d0a04678b50bdebb8c1c6608c1d44 |
|
BLAKE2b-256 | 189dd1dbaa49949d5362bb024a1ebfccfc342fa05eb2b312a97fdff10de58db4 |
Close
Hashes for python_mecab_ko-1.3.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4443a1e55bdf380ec5ef714c5e265efadbb9931719facb4b44b17afeada90f6 |
|
MD5 | ef8d1f6e8ccb216f00ef51c8b0f07c93 |
|
BLAKE2b-256 | f3a907d0a773145ff05264374ad34a1bf53fb20e72b92137529d0729dc7fb3a9 |
Close
Hashes for python_mecab_ko-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 221fb5490ccbe9dd5239432cab79eeff1807c99033a45da08af1c51f334df840 |
|
MD5 | 25c9bd5d71cd6601011a941b118013aa |
|
BLAKE2b-256 | 13bcd3576d328bd17d2fc50549406c67cd68314087587116cabaad4da31403b9 |
Close
Hashes for python_mecab_ko-1.3.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c81eafaef97ca81d0641f16684fa95a91f4d2b06eb19518a230beb8decf29b1 |
|
MD5 | 0bf7daa4c1eb1840e59f541827c7ab86 |
|
BLAKE2b-256 | 59e179f49ee7de0ec913960b4381ce8892f819340bd3e6ccc5446d271b4dd216 |
Close
Hashes for python_mecab_ko-1.3.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5850428a0c55150f33c635914d89361db85c511790f6dc0ccdc930446c9427 |
|
MD5 | e4eac678beddb36dd8a1b258fac864b3 |
|
BLAKE2b-256 | 5f5bba9b49a2ac83e65bde54ca14c8ef350615a1808d6463f7920c6c63e5a695 |
Close
Hashes for python_mecab_ko-1.3.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 123159acaf0de4bc983aad46093421a82d4efe346029302df21f6f28e9084de6 |
|
MD5 | 6136f4ef4545dc69d03935214494fbf2 |
|
BLAKE2b-256 | 289386882cbe8dc4548820204e9880dfc3bd1ce486f807351908c3417d9b6520 |
Close
Hashes for python_mecab_ko-1.3.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68bd955e595620e716790345d28fd2d3001f08c206ef703eae38e19ec4dffe55 |
|
MD5 | f2ddfcc0c052d203b91d1ddc22fc7e75 |
|
BLAKE2b-256 | 127f915a7f1c3fc97ba80925a6d76ee72eb56a6888b1c93abf69f3185dfed522 |
Close
Hashes for python_mecab_ko-1.3.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216ce08ec7e32fc3fcbebf6f90c82cbaffdc0291065015e6c9f68238db18c346 |
|
MD5 | b3e4ceb34fb5864d5b01fb81e8a80aa5 |
|
BLAKE2b-256 | 60331ee4c7cb2099a16f8106c10591976f9812c41c5ca15e7f680cf6187c1127 |
Close
Hashes for python_mecab_ko-1.3.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f225699a46cf64b1003db6acd9a85dfc8023c3be9788b2d41ebb6b46ad44de6 |
|
MD5 | b08a844809bd6cbf6126f0885ef65c33 |
|
BLAKE2b-256 | 2e202305ec036a48530d582f9cdeb0d8599dae377a88fb77eb18ccdcbc1eff06 |
Close
Hashes for python_mecab_ko-1.3.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117a51726c5145ca0239a2b937784300c6873bf8c725db65f0a32c12804fadca |
|
MD5 | c2e6f25f62b5c0f9faa5e245315f0f7d |
|
BLAKE2b-256 | 6fbf46e13ed875263aeba735cbbf22f224b7c8f09e0a6d90b13b9b86e275e352 |
Close
Hashes for python_mecab_ko-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c80dcc0dcbe4e1bfc090333a8ff991f2692143d2722e4e1d33f28313bf6524 |
|
MD5 | 9a8bf193d65d6a8de0eed63a93df017b |
|
BLAKE2b-256 | 18005f7f8947f5b3718eee018444d1e0d2cd241a1a3c9748e75b5436e0da6acf |