Skip to main content

Calculate the surprisal of words in texts.

Project description

Bikkuri

Calculate the surprisal of words in texts.

Tests PyPI Version crates.io Version

Usage

Python

from bikkuri.ngram import NGramSurprisal


unigram_surprisal = NGramSurprisal(1)
unigram_surprisal.fit([
    ["lorem", "ipsum", "dolor", "sit", "amet", ...],
    ["convallis", "fringilla", "dignissim", "massa", ...],
    ...
])

unigram_surprisal.surprisal([["lorem", "ipsum", "dolor"]])

Rust

extern crate bikkuri;
use bikkuri::ngram::NGramSurprisal;

let mut unigram_surprisal = NGramSurprisal::new(1);
unigram_surprisal.fit(&vec![
    vec!["lorem", "ipsum", "dolor", "sit", "amet", ...],
    vec!["convallis", "fringilla", "dignissim", "massa", ...],
    ...
]);
unigram_surprisal.surprisal(&vec![vec!["lorem", "ipsum", "dolor"]]);

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

bikkuri-0.2.0rc25-cp314-cp314-win_amd64.whl (155.3 kB view details)

Uploaded CPython 3.14Windows x86-64

bikkuri-0.2.0rc25-cp314-cp314-manylinux_2_34_x86_64.whl (289.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

bikkuri-0.2.0rc25-cp314-cp314-manylinux_2_34_aarch64.whl (283.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc25-cp314-cp314-macosx_11_0_universal2.whl (253.2 kB view details)

Uploaded CPython 3.14macOS 11.0+ universal2 (ARM64, x86-64)

bikkuri-0.2.0rc25-cp313-cp313-win_amd64.whl (151.2 kB view details)

Uploaded CPython 3.13Windows x86-64

bikkuri-0.2.0rc25-cp313-cp313-manylinux_2_34_x86_64.whl (290.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

bikkuri-0.2.0rc25-cp313-cp313-manylinux_2_34_aarch64.whl (284.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc25-cp313-cp313-macosx_11_0_universal2.whl (252.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ universal2 (ARM64, x86-64)

bikkuri-0.2.0rc25-cp312-cp312-win_amd64.whl (151.1 kB view details)

Uploaded CPython 3.12Windows x86-64

bikkuri-0.2.0rc25-cp312-cp312-manylinux_2_34_x86_64.whl (290.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

bikkuri-0.2.0rc25-cp312-cp312-manylinux_2_34_aarch64.whl (284.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc25-cp312-cp312-macosx_11_0_universal2.whl (253.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ universal2 (ARM64, x86-64)

bikkuri-0.2.0rc25-cp311-cp311-win_amd64.whl (153.0 kB view details)

Uploaded CPython 3.11Windows x86-64

bikkuri-0.2.0rc25-cp311-cp311-manylinux_2_34_x86_64.whl (292.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

bikkuri-0.2.0rc25-cp311-cp311-manylinux_2_34_aarch64.whl (286.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc25-cp311-cp311-macosx_11_0_universal2.whl (254.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ universal2 (ARM64, x86-64)

File details

Details for the file bikkuri-0.2.0rc25-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 0deb3ecddf06e5827b4e74e9fa94d7909d117dca7e5e97128362431e6bbc76d0
MD5 1f9725f77bd9f1fbe1a5bbc9fc9b2f71
BLAKE2b-256 3b8c174e8e17b2b0c75b880836e338724c9f56be75ed1fde3a78be482e41ddc5

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5e43d10b12ddd42e34576cba8ccb55a20f87cb1b043f61a560e0f3a64404a0cc
MD5 df99b9fa33850e7502aaa8cece13d3e6
BLAKE2b-256 30e9430bb998f34e819a6f33a349326528b6b0d81a6ed8c435385c1a638b8459

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 554bf8d06f9a088de7c52472bb99fb4e67d97a02d2e02c18fe89dd386f9e747c
MD5 7862cbeab716357799bd61339ef79f9e
BLAKE2b-256 821838626631a79d3114d0372f4be9b6f1bd46435da5b887299c5e4a56b74552

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp314-cp314-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp314-cp314-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 b8c62fdae732cef742abeee800b11db97608e5ecef249e89c8c4cc48e106cb0f
MD5 481666a6a600757c51e4877592c53145
BLAKE2b-256 d0a67b6f5eeed36ef172738e0d42f68f0b2fa753d86ccb1e3f6a60b4fd76ef48

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: bikkuri-0.2.0rc25-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 151.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for bikkuri-0.2.0rc25-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 817a50a194d16b638c2ef0243f3042813ed70273b41bffde68a51f58adef3d2b
MD5 855f2376cada31ea14b442b8318bac4f
BLAKE2b-256 72654448af6405d44caa77b6585a55ced1027a697842defbb2c1e2dc532f7679

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0392eb2af7a972335385a70994ecd315e892269f9246d7227cd058470e0f6234
MD5 672d7e09c988a99a4c67b2691fbbaa8d
BLAKE2b-256 4f25ab02f00c94661d7d3b097ebde102c98d83ffe08db3efe9d288956b2420e4

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 91c54cf79b8026cbb9d9ab73380ef4de906f6f6e49f05cb9774f442f5f439b1a
MD5 7ee5e7e7f762602536b4823981e3193a
BLAKE2b-256 99c44b90451ff7b0af20c289a09955e80ffee000cfd7a91e2d00f2a8f097c09f

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp313-cp313-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp313-cp313-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 4feb589000fb0f81a966a068ee1f0ef0175d7644114c66449f78c72caf447bde
MD5 69a758abc8b11fa4813fab12200215b7
BLAKE2b-256 a8caa35a6c863a4dbad1ce2afe46e9a87493eaf1c39cc8ff658bf7a238bf6918

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: bikkuri-0.2.0rc25-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 151.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for bikkuri-0.2.0rc25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fabbd9f881316096ccd967f0d172cf4d6cd5e4fe39928f7491f4564bda113b7c
MD5 de8bab3e597059b14977c6608e9a0ecb
BLAKE2b-256 4fd15ae4430f819a2ab0f2045134b66b333709fc4440d3e338ff3f6675331e4d

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 baaee8dd6c807c2b5fb758b4d8872059bd68168e50a1d531d5b7b4b8a6ffa425
MD5 ee35e41d458c37989fee4c6b9769fcac
BLAKE2b-256 06637c63de016e84d9a50207109df803ccc4c2a323b1718f2d7c42227782c57e

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 bcdd394058976af9a1147429772f657f64ab83fdc558c3f06acebd329ade5ec3
MD5 870154757da90a4bdb5e55c1132697bb
BLAKE2b-256 7c89fc2cfb5e0983f639179bee34c938fb26b50652ddf8058cc293bc7251a37b

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp312-cp312-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp312-cp312-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 c2b3e026d2c96a91a1bfdf47a8e4539d2e27b9e80cd3ead42d9a7401fe708b95
MD5 639c4a0acc972d58ef19750f41f96b01
BLAKE2b-256 a8aa4fe6710a87eef4d600f41583f92b321270ff2b1ffdcac16719d58ad990b8

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fdc4d356edef0af644bcbfce6e47e516f83aa7ff911b591414b52190c0ee8066
MD5 2a7391de5355f32f29ee2fccb5dc9941
BLAKE2b-256 b04911fe191cce55688642650fda6ac1a05d9b361cb7b2585f657c4f2ad6fc94

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 85f88aa2afd952695a3dabbfe6292064307d38d3128f3473eabd016ed6bc92c2
MD5 3d039390e620926fab94fa5f6e6cc4d7
BLAKE2b-256 4ea6f099c760b7e210c548706ebfeba883242e4f680a9694fc7e209a2c077c94

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 ea0f54120e2b8e7af6817ef3fdee5231c2a19e5fdde00c76a58af8fe80d0771d
MD5 ca1500cbc926b0bd7a3225a0dfe517ed
BLAKE2b-256 8cced70cd98bc24e3f7f6679151b3a7f33eaa62773d14533fc4d3159b41fc726

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc25-cp311-cp311-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc25-cp311-cp311-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 e7bac1a8f4d323dc7133daf5232da65bf829f9b47c89dc06ef2908c0d3f43313
MD5 74a3de543e714b9406e984a759be0488
BLAKE2b-256 7c5b3c5e7be05245fc235d5bd255562227013fee9f119402399a7013b7e3c023

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page