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.3.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.3-cp312-cp312-manylinux_2_34_x86_64.whl (510.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: ngram_trie-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 22e345e0e73d3ecb5442b775df3eb4c6139aefd6516388720eecebed78aabd1d
MD5 79d1bdd842ce99bdbb9b3d6a92435f40
BLAKE2b-256 bff08e1642572361f70b63abc83f39d840bf1ce6658032df26eda3df861d647c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a9bebbbec8d5841e876c9e9fc70756b86192a008b95d5b036e8fe53be01779cd
MD5 15a40fb493c8cc85e0f61a1c9df07ef6
BLAKE2b-256 0b9417ec79a71019521a7a6e03330d20da7d20bb86f2402022c696022d857c90

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