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.5.tar.gz (26.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.5-cp312-cp312-manylinux_2_34_x86_64.whl (531.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-1.1.5.tar.gz
Algorithm Hash digest
SHA256 0fcd58013e9f2182521116ea99a27593e7cfe42f7d3383f0c5912bab7c2d9757
MD5 e26b7c3548dcd0af7951c0dc731b8be2
BLAKE2b-256 3fbdd500406f8c4c762bf8b529beadb2c0e4d2ce466510de927dd0e05c9d9032

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.1.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b3f516d6ff459fd173e190f536a33ceb3dc8d0254769e4fd49f54d8abe0dded1
MD5 e292565b734f655dda4ed99a426df2bd
BLAKE2b-256 da9c791aabd5964ea72513b8e82981780f2af137a4839472513ecec71f876e2e

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