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.0rc31-cp314-cp314-win_arm64.whl (152.2 kB view details)

Uploaded CPython 3.14Windows ARM64

bikkuri-0.2.0rc31-cp314-cp314-win_amd64.whl (155.4 kB view details)

Uploaded CPython 3.14Windows x86-64

bikkuri-0.2.0rc31-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.0rc31-cp314-cp314-manylinux_2_34_aarch64.whl (283.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc31-cp313-cp313-win_arm64.whl (147.8 kB view details)

Uploaded CPython 3.13Windows ARM64

bikkuri-0.2.0rc31-cp313-cp313-win_amd64.whl (151.1 kB view details)

Uploaded CPython 3.13Windows x86-64

bikkuri-0.2.0rc31-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.0rc31-cp313-cp313-manylinux_2_34_aarch64.whl (284.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc31-cp312-cp312-win_arm64.whl (147.6 kB view details)

Uploaded CPython 3.12Windows ARM64

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

Uploaded CPython 3.12Windows x86-64

bikkuri-0.2.0rc31-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.0rc31-cp312-cp312-manylinux_2_34_aarch64.whl (284.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

bikkuri-0.2.0rc31-cp311-cp311-win_arm64.whl (149.7 kB view details)

Uploaded CPython 3.11Windows ARM64

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

Uploaded CPython 3.11Windows x86-64

bikkuri-0.2.0rc31-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.0rc31-cp311-cp311-manylinux_2_34_aarch64.whl (286.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

File details

Details for the file bikkuri-0.2.0rc31-cp314-cp314-win_arm64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp314-cp314-win_arm64.whl
Algorithm Hash digest
SHA256 b5aca150d7dc56de9e6bae60987b478d052ac6e160e9c9739c6d2e38eb5eae02
MD5 7ffdfc4b1dd188ce2ad4847885a85fb1
BLAKE2b-256 22f760bf27061b936a6d54dd8b69315884a7a0df689c9cf33014bf69db8e7bbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b5c6c206f5537e619bf0a4216eb44aa4198c14e0f9d3495db508f935e807375e
MD5 9010f63a5db7178a0f2c34710b5619ff
BLAKE2b-256 36b540ac1b8334cb43f5c3b6e0b93d0c9bdb837e2e04958c325c2d5312125572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1c0dabbf0a0ba4f9e1241dc75cc0047631af9e335f7baa316d0809bb38d020df
MD5 e75de356847b3474cf931424e6fe93cf
BLAKE2b-256 ff315871e1a6d033d6e69a1ebaa69529cb9723408990ec5af67dd1242befdc67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 667b12351ab1c816460e76d838161d7778e4d7bbc76ff8cba0fece53b319597b
MD5 48e18806348b1863302c391ef6200d8a
BLAKE2b-256 7232ad0724fc96603259107b48d937a5372b3c2bb3454222830fc7260f69ac4c

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc31-cp313-cp313-win_arm64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 54e200ae3917d79879d1fd8fb3ddf987f8c58b59e915c7738e6fe805c3764e0e
MD5 f13750528ea85edf8feaa8975877bf7f
BLAKE2b-256 508ae698932fcb2d5ab9ae779f2ad98593d0edfcabfbbb580ca2dbb1feaaadd7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bikkuri-0.2.0rc31-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dd554a822c995ad9dbeacdee8112a511c3ca5523f3d182b4aff38cae07a81d66
MD5 e2df729db823b8c633af398d553a0bf3
BLAKE2b-256 ede65a94760a2991f0348f31a264153d968381e42045927e404f2abca46dc903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7ba6d4b00cec9c98eff577578b160d65ac092a90b441a1230d7f34e59f49f729
MD5 47cdd83b7607f1459bc15f53531f922b
BLAKE2b-256 2dad04130642eb8a558c2d7e806b3ea4b74baece36713cded7976cd4cf4a2c0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 e0c6c30fc0f2b86a16c297de8284eb1ee19f94def2d5f223d42e318cacabbbf7
MD5 a2776efdccef28f2d800a965feb8dd8a
BLAKE2b-256 9e1a6e699522b37509c5833310406132753b8dde8d7ba12ae7e67fd3ced4de15

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc31-cp312-cp312-win_arm64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 aa7da66e6a722262debe71ae928df96a43eed431ddbd16dfed680e94f5de1cef
MD5 a3a79d7f9bb2b6a01f3c598f6d802bcc
BLAKE2b-256 cf517a30aa2a85fbd8f512935d42ec8444d2923d46e5c377c83f4a99149fa1e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bikkuri-0.2.0rc31-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.0rc31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 37d421f842e4c13342a581f63ba2f66fb4af95160ef2c37b0e5c54b5c0b86248
MD5 f086d0ac354a8998187ce80444f71c8a
BLAKE2b-256 3ba280d21f6c201e0816b66185cd2fa7555fe58b119b156646fdd68f7c1face7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 70875ddf8a8bac917cb6e70ac86c52b15083f7b6d027774798a72e5836739dac
MD5 1d4169a4a20f1d8f21f8b055726f6b75
BLAKE2b-256 0f152b50373d8132cb55c1675d36c4caaff57c6409b98a48640ec5bf6fcdffbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3908bcf0e9ea6f032faa19485353f16784f8aa1d43b90c4f2b56516928e10cec
MD5 5a816249a6222eca3ca023226dcce15a
BLAKE2b-256 db7b6b75e4e4fdcef7c5fc3a357b032acc472b3871aee48147d7275990e20d60

See more details on using hashes here.

File details

Details for the file bikkuri-0.2.0rc31-cp311-cp311-win_arm64.whl.

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 c18f425643ecdf36c6d615d563c8e9e5515c0ed6db5330ede7ef33e8b357923e
MD5 3387d3de36e41c1652f20e68329a45eb
BLAKE2b-256 a65674b64e6e04677798aebbce88af228f5c3a7df97ee5de87d3d9df1a1aff5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c177533009d90a86b0143e23142032155a7e27eae8aba4315cd6df6214814a5d
MD5 46a4ea6cb696f606fc1668b7d16c47de
BLAKE2b-256 d5f4d1d428c2a27e47ada7dea6a0101b02cb8bd8622c5573e3eb22789d39eae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 eee3386ab6120823e086bd49af87bd834c10373dac6278d5b6783dc93ff6edf4
MD5 c8e94be18c7b6626c130cc7b86b75f05
BLAKE2b-256 2be8cd7760d53c52f06394a9e8122a332dcedaf440ae44c7f3ee431d715c4df3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bikkuri-0.2.0rc31-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 18efaa241acb15fd1f70a34094b874312bd1b526d45bdf75fa03d528191e4f5c
MD5 6f188255785b393bad0c0b2c3488da8b
BLAKE2b-256 9a963cf506b4ea4b0c51f23c89944a60cdef25be47f6b5b80aa95c5de943360d

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