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).
Metadata
Release files for nori-clone 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 150.3 MB
Release files / nori_clone-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nori_clone-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 21.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
2af075cb3ae5a0d02e80cc93e4d4cb25ed7b887b028baac515ebee75e2e02760
|
|
BLAKE2b-256 checksum How to use checksums |
a4f86a58695779aa018d0d95031e807e543cdfc81c6a4965b44ae6aedbb5fefa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / nori_clone-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
| Download URL | nori_clone-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.10 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
cafff08a2d53e8ef2fa798ac7233552feac8723a798ed15110247b12b9e60017
|
|
BLAKE2b-256 checksum How to use checksums |
0c2f0e85be7e49d53199a363a7fe874bae6c28d797513e9df74731cfe05f2486
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / nori_clone-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nori_clone-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 21.6 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
9c5c67e34dc712b611831aae37f82813d752d60e9bca0dc9c9db9ec00d2eaae0
|
|
BLAKE2b-256 checksum How to use checksums |
38c30dbf21486a45bad202c8813dff2c08e15e63f3d9084e398bbd97b59c36ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / nori_clone-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl
| Download URL | nori_clone-1.0.0-cp39-cp39-macosx_12_0_x86_64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.9 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
bdbd249667ead32350e97ef6dd5a86884d8c2e4f11e8ce1999c3560ccb77f016
|
|
BLAKE2b-256 checksum How to use checksums |
1d2a4e6a7f385a68cfd10dc4c7693a5ec6e6e781aab2072d21571d57ab56e533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / nori_clone-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nori_clone-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 21.6 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
998f13daa068e6a23000c955bb00dfc16dfbca398c86b63dab36ea2826ff2eb3
|
|
BLAKE2b-256 checksum How to use checksums |
76f2d72b565575dec88c9040be353158cc33dfdecc35263df99b02c57647ee8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Release files / nori_clone-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl
| Download URL | nori_clone-1.0.0-cp38-cp38-macosx_12_0_x86_64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.8 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
da245e8455957e899742f04fbbf0389bbe5db7dd998d45c19043a5b63a130839
|
|
BLAKE2b-256 checksum How to use checksums |
905f0b080790757ee6444299ae92a58f18e1ab166b23e1e77a847a54e88b4856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Release files / nori_clone-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nori_clone-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 21.6 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e07545bab61ee6168f88c8612244b3929bc75b0212f50f78d11605284ebf576c
|
|
BLAKE2b-256 checksum How to use checksums |
f91f6a962022df8a1c8b5bfeaad2091c72ad843e026ac6c4627a25a2f3a79403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12
|
Security for nori-clone 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.