No project description provided
Project description
nori-clone
Python binding
Usage
Installation
pip install nori-clone
Pre-built pip packages are only provided for x86_64 macOS and linux.
But you can use nori-clone
in M1 chips if you build this repo from source.
For more details, you can check nori-clone
in PyPI.
Build from source
You can build pip package using Bazel.
$ bazel build //nori/python:build_pip_pkg
INFO: Analyzed target //nori/python:build_pip_pkg (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //nori/python:build_pip_pkg up-to-date:
bazel-bin/nori/python/build_pip_pkg
...
$ ./bazel-bin/nori/python/build_pip_pkg dist
++ uname -s
++ tr A-Z a-z
...
++ date
+ echo Thu Jan 20 21:59:37 KST 2022 : '=== Output wheel file is in: ./dist'
Thu Jan 20 21:59:37 KST 2022 : === Output wheel file is in: ./dist
You can find your own wheel file in ./dist
.
How to use
import nori
dictionary = nori.Dictionary()
dictionary.load_prebuilt_dictionary("./dictionary/latest-dictionary.nori")
dictionary.load_user_dictionary("./dictionary/latest-userdict.txt")
tokenizer = nori.NoriTokenizer(dictionary)
result = tokenizer.tokenize("이 프로젝트는 nori를 재작성하는 프로젝트입니다.")
for token in result.tokens:
print(token.surface)
You can check the inferface of Python binding here(./nori/bind.pyi
).
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for nori_clone-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af075cb3ae5a0d02e80cc93e4d4cb25ed7b887b028baac515ebee75e2e02760 |
|
MD5 | 3a6403bcdacdc8e43ca131275cf8460b |
|
BLAKE2b-256 | a4f86a58695779aa018d0d95031e807e543cdfc81c6a4965b44ae6aedbb5fefa |
Close
Hashes for nori_clone-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cafff08a2d53e8ef2fa798ac7233552feac8723a798ed15110247b12b9e60017 |
|
MD5 | 40ad28d0bed1acaa08dc44ea89eedb46 |
|
BLAKE2b-256 | 0c2f0e85be7e49d53199a363a7fe874bae6c28d797513e9df74731cfe05f2486 |
Close
Hashes for nori_clone-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c5c67e34dc712b611831aae37f82813d752d60e9bca0dc9c9db9ec00d2eaae0 |
|
MD5 | aa705dffbb9596cdeffdcf8fef654932 |
|
BLAKE2b-256 | 38c30dbf21486a45bad202c8813dff2c08e15e63f3d9084e398bbd97b59c36ed |
Close
Hashes for nori_clone-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdbd249667ead32350e97ef6dd5a86884d8c2e4f11e8ce1999c3560ccb77f016 |
|
MD5 | d04a169fa0b0c0ed30c167fec3f9ff57 |
|
BLAKE2b-256 | 1d2a4e6a7f385a68cfd10dc4c7693a5ec6e6e781aab2072d21571d57ab56e533 |
Close
Hashes for nori_clone-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 998f13daa068e6a23000c955bb00dfc16dfbca398c86b63dab36ea2826ff2eb3 |
|
MD5 | 0719646c63e1f68aa131a0b9443431d0 |
|
BLAKE2b-256 | 76f2d72b565575dec88c9040be353158cc33dfdecc35263df99b02c57647ee8d |
Close
Hashes for nori_clone-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da245e8455957e899742f04fbbf0389bbe5db7dd998d45c19043a5b63a130839 |
|
MD5 | 831360f67a329c1885c0ff40ae56bf3d |
|
BLAKE2b-256 | 905f0b080790757ee6444299ae92a58f18e1ab166b23e1e77a847a54e88b4856 |
Close
Hashes for nori_clone-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e07545bab61ee6168f88c8612244b3929bc75b0212f50f78d11605284ebf576c |
|
MD5 | 6aab2ab55f4e9b751696a4f19413d0f7 |
|
BLAKE2b-256 | f91f6a962022df8a1c8b5bfeaad2091c72ad843e026ac6c4627a25a2f3a79403 |