Skip to main content

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
korp-1.0.3.tar.gz 8.6 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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