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

  1. Clone the required repositories:

    git clone https://github.com/behappiness/ngram-trie
    
  2. Install maturin:

    pip install maturin
    
  3. Build the module:

    maturin build
    

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-0.1.0.tar.gz (20.8 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-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (377.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24c645d98c9c46653c3cbc892b834283d9baeea4adb613f099345df86c2a901e
MD5 2b04f1b47bc53dc3a40d799bce93212e
BLAKE2b-256 4641c53a7416daf8859dfe1bee7d3d7913d3fb6115e9c0199e64a07d06e17270

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 19b74ad200c228fdaa3532e81b146cf824ae060ef9dc3e76f1979ff5ed6fa0e0
MD5 c7bf888fdfa5997f2755f729afcaac45
BLAKE2b-256 4128ccde3420b92235d6d285d9cac28df51477abeac3d7fe8acb1d57deabc3fe

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