Kollocate: Collocation Search of Korean
Let's find out which words are used together with a certain word.
Requirements
- python >=3.6
- whoosh
Example
>>> from kollocate import Kollocate
>>> k = Kollocate()
>>> query = "먹" # drop the final ending "-다" for verbs/adjectives.
>>> collocates = k(query)
>>> for pos, cols in collocates.items():
>>> print(q + " as " + pos)
>>> for pos2, cols2 in cols.items():
>>> print(pos2, ", ".join(word + "(" + str(cnt) + ")" for word, cnt in cols2))
먹 as verb
noun 것(39), 수(29), 음식(23), 등(16), 고기(14), ..
verb 하(33), 않(21), 살(17), 즐기(11), 굽(9), ..
adverb 많이(10), 주로(7), 다(5), 같이(4), 잘(4), ...
determiner 다른(5), 그(2), 여러(1), 세(1), 몇몇(1), 새(1)
adjective 싶(5), 어리(1), 편하(1), 작(1), 좋(1), 손쉽(1), 못하(1)
먹 as noun
noun 붓(3), 종이(2), 묘선(1), 청자(1), 은장도(1), 제조(1), ..
verb 의하(1), 그리(1), 찍(1), 차(1), 늘어놓(1)
adverb 하지만(1)
Metadata
Release files for kollocate 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kollocate-0.0.2.tar.gz | 72.1 MB | Without provenance | Details for kollocate-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kollocate-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for kollocate-0.0.2-py3-none-any.whl |
Total release size: 144.2 MB
Release files / kollocate-0.0.2.tar.gz
| Download URL | kollocate-0.0.2.tar.gz |
|---|---|
| Size | 72.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8385adb51a790c262fb853c6d7cd1fdab62e5fec98ae402e04a5ae41f100df53
|
|
BLAKE2b-256 checksum How to use checksums |
f037726c54b1f68f9bbe574c7647c054abdab77a2e848ef7cc1c2f586229fd59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / kollocate-0.0.2-py3-none-any.whl
| Download URL | kollocate-0.0.2-py3-none-any.whl |
|---|---|
| Size | 72.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a38290c2a9b77e2eeb5a85bc259d1a40aca26eb1544dba8fbc6269d2d002f884
|
|
BLAKE2b-256 checksum How to use checksums |
de42c41d6181ebc619e8b53830c9b726baadf8c54d8d913ec68420f1dc288973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for kollocate 0.0.2
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.