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.6.tar.gz (31.1 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.6-cp312-cp312-manylinux_2_34_x86_64.whl (625.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ngram_trie-1.1.6.tar.gz
Algorithm Hash digest
SHA256 553b8dd0656098cdecf7437c6c1c4e230dc672fd8b876ea4397c86ce95c51a1e
MD5 acaefa4e542ae8f9ff00c6cc0cdc01e8
BLAKE2b-256 d75770488e25480b6fe8f749812bce6801f8454f3efc6f30493433023fe991b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ngram_trie-1.1.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2060bdaa5fece3acdcc51da639d423cbc90e1af318f950fde4ee9852b4addbdb
MD5 364952222b1920ab9ec60d17002ca002
BLAKE2b-256 ceebce2841d695e3755551ab4239c988d261198974626ed55d087b8d908c52f6

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