Skip to main content

A Rust-based n-gram trie library for Python

Project description

ngram-trie

ngram-trie is a Rust library designed to efficiently handle n-gram data structures using a trie-based approach. It provides functionalities for fitting, saving, loading, and querying n-gram models, with support for various smoothing techniques.

Installation Rust

  1. Include it in the Cargo.toml:

    [dependencies]
    ngram-trie = { git = "https://github.com/behappiness/ngram-trie" }
    

Installation Python

  1. Install from pip:

    pip install ngram-trie
    

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

ngram_trie-1.1.4.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

ngram_trie-1.1.4-cp312-cp312-manylinux_2_34_x86_64.whl (525.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file ngram_trie-1.1.4.tar.gz.

File metadata

  • Download URL: ngram_trie-1.1.4.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for ngram_trie-1.1.4.tar.gz
Algorithm Hash digest
SHA256 a0e2709499d3967abc1ea54fcf6b6b287371d600572a26e34cd3201701279e79
MD5 5e1c6feb72446e4228cf918fd3e1e5f8
BLAKE2b-256 aeece6553fb783ddfc5448cf26cf5381e9d1a0fec60daea43aae17244a812253

See more details on using hashes here.

File details

Details for the file ngram_trie-1.1.4-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ngram_trie-1.1.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c9d411c1ab85341a7f716362207796dc957f7f7583a60ccc53128f6925a98795
MD5 60f160a20229b1a8b8e74c880c2a33d6
BLAKE2b-256 8ec120e661923a87846794fb8f52e97f12ec9acba9864e0cff2db7482e4d1019

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