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.0.2.tar.gz (23.7 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.0.2-cp312-cp312-manylinux_2_34_x86_64.whl (558.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6921f14f9676569f92bc70dc196f0d4625fd2529d3c092942a51d13224d50fdc
MD5 abcfa4153ce238c8c8dec4019f89c2d1
BLAKE2b-256 f68b6671a112eb9344842bb2b5000acc15da61db897fba3bae36e0c8d629bf7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.0.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dc7990da1d244cfafeec405afb18e454ff0ed0be36df32a884bc19c2f4e2f3e1
MD5 f96101d81ee8804ecb9eaae56628c218
BLAKE2b-256 b406b3d2983d42bae3f0d033a4c4ae0437989d4ec257a70152623d4e36ac5844

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