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.2.tar.gz (25.6 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.2-cp312-cp312-manylinux_2_34_x86_64.whl (510.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-1.1.2.tar.gz
Algorithm Hash digest
SHA256 e8000f4dab6ddf77384118ec3ffae481404d0a366c99f17c4acf930ae7178d59
MD5 1943bdb338ba57b0613eeabb360328d3
BLAKE2b-256 3aff34c97959198df6f9938e9da5a71e1b64bfa9d185ecca99babf22385cad8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.1.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c8ff25607bd28e47d711486c170de22137943c24e474010c9b1660003fd4ea6d
MD5 af8d737b3dc50e9f0d5f58b1fcf14982
BLAKE2b-256 29ede518f3abd7203485fdb39339d9ccfe40b34d96734d736b27807423f330c7

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