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. Clone the required repositories:

    git clone https://github.com/behappiness/ngram-trie
    
  2. Include it in the Cargo.toml:

    [dependencies]
    ngram-trie = { path = "path/to/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.0.tar.gz (22.5 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.0-cp312-cp312-manylinux_2_34_x86_64.whl (589.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7b518ca8b6dae622f4cf9e7cea4c1574a6afc57b65e896ec19c89639418de6ab
MD5 498d4c4167335e755a88dfdabfec19b2
BLAKE2b-256 6a49316016543aa485277383ba9f2487f5bcef7a2ce69f4849b7efbc53635fdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 22832cc939334afdc7338f9e664ec4cd8a9cc7c6ac6f309607d78d48c80e76b9
MD5 92304a141894fb68c5a384361e4f051b
BLAKE2b-256 5bc57e7c16a1d8137d5bb796551b55deadc0c5fdb5656b0fba3818aa81bf676e

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