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.1.tar.gz (25.3 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.1-cp312-cp312-manylinux_2_34_x86_64.whl (468.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d924e553afd78f7d6cc94e83a92092432ab8a6ccaac9d8439cb357436de32fe2
MD5 a097557f742862d94ea07d7f546ca4d6
BLAKE2b-256 e52a4c7724029910c128568475b816c6ca593e4496ead6b0b709c742de8ffc58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 eb97b05388bcfa394fabf726963dc7776ff48976791441da2e10cfca98020dc7
MD5 95a878c0d3b6fcb026a1a8e5be5a8fc4
BLAKE2b-256 fa59d8b76755a94c0e67edd32cef07e8941d23960e049a9b2d8a81534553b872

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