Skip to main content

Calculate the surprisal of words in texts.

Project description

Bikkuri

Calculate the surprisal of words in texts.

Tests

Requirements

  • Python >= 3.11

Usage

from bikkuri import UniGramSurprisal


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

unigram_surprisal([["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 Distribution

bikkuri-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

bikkuri-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file bikkuri-0.1.0.tar.gz.

File metadata

  • Download URL: bikkuri-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for bikkuri-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dfd46fa46fc90a02bd08b492491b30a065dfa211cb03f40645a08c02cb31ed97
MD5 8b35145074b0d81b6d0c5d1f46e37cd6
BLAKE2b-256 cdac9af6fb2ae44c036fa38fa34508d75ba71c9ba95603f4c96ed6e98c06421b

See more details on using hashes here.

File details

Details for the file bikkuri-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bikkuri-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for bikkuri-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0187014085284ce120a01671f9ddbe73e96f3f1c21244569e67bd0f6f11867fb
MD5 b597fd2c579c10e9bd85c23d7b8b12ad
BLAKE2b-256 246ddf89c38e02e201d870760a71630ac1eb152864f0bdf3a53642163dcd79d9

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