Skip to main content

Korp API for Python

This library provides an easy way to query Korp systems for language corpora. This library is brought to you by Mika Hämäläinen.

Usage

You can initialise Korp with either service_name (språkbanken, kielipankki or GT) or url to your Korp’s API interface such as https://korp.csc.fi/cgi-bin/korp.cgi .

An example for getting all concordances for North Sami corpora in Giellatekno Korp for query [pos=”A”] “go” [pos=”N”].

from korp import Korp

korppi = Korp(service_name="GT") #uses Giellatekno

corpora = korppi.list_corpora("SME") #lists corpora returns the ones starting with the North Sami language code

number_of_results, concordances = korppi.all_concordances('[pos="A"] "go" [pos="N"]', corpora)

More information

For more information, see the GitHub page and Wiki for tutorials.

Metadata

Release files for korp 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for korp 1.0.3
File Size Uploaded Provenance Actions
korp-1.0.3.tar.gz 8.6 kB Without provenance Details for korp-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for korp 1.0.3
File Interpreter ABI Platform Actions
korp-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for korp-1.0.3-py2.py3-none-any.whl

Total release size: 16.0 kB

Release files / korp-1.0.3.tar.gz

Download URL korp-1.0.3.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7a43be9d794becf2c88a56999bd1f703d8fe1d01bd0fcf2342f61910a7393db3
BLAKE2b-256 checksum
How to use checksums
9a676a6b4ec3ff1133ec544d157ac65e416e9efe74e7e05d799b52374778cd8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.10

Release files / korp-1.0.3-py2.py3-none-any.whl

Download URL korp-1.0.3-py2.py3-none-any.whl
Size 7.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
276bac5070cf5657fff3e2350eafdee0481ca435633253af1689d1b5953ff2a2
BLAKE2b-256 checksum
How to use checksums
9b9b9232a73da02b058dd9c3f7d01b230f99a9bd094f52c9bf6e5556c95401e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.10

Security for korp 1.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page