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-1.0.0.tar.gz (21.0 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.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-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for ngram_trie-1.0.0.tar.gz
Algorithm Hash digest
SHA256 29574e0b6158960429c2032eecf428cf904954028553a858ecc2e8a6cb1e7de8
MD5 bf743871e7c292b6bf12e06883a7c119
BLAKE2b-256 7a2e234793f2c80d8c636df178db8352dcb4e9efe7d7a06ef0c3471aaea7ab64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.0.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 998abfc6b8aec62d749991500b8d7f92030f2832a5d0a69df650db0d661617ef
MD5 8f0f5c15ff401c378c56bb1bb9d73eab
BLAKE2b-256 65200f0e0e5e21ab05914920ec004724c49d5dfe83414a7da9bbcd7b082a2639

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