Skip to main content

py4N-gram

N-gram Python Library

Getting Started

This project is simply implementation of N-gram algorithm in python programming language.

Prerequisites

This Project Has No Prerequisites

Installing

The easiest way to install py4N-gram is using pip

pip install py4N-gram

Usage

It's only a function named Ngram. It takes 2 argument, the first argument is the text and the second argument is the number of N.

from py4N_gram.tokenize import Ngram
x = "i love python programming language"
unigram = Ngram(x,1)
bigram = Ngram(x,2)
trigram = Ngram(x,3)

Metadata

Release files for py4N-gram 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py4N-gram 0.0.1
File Size Uploaded Provenance
py4N_gram-0.0.1.tar.gz 1.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py4N-gram 0.0.1
File Interpreter ABI Platform
py4N_gram-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 kB

Release files / py4N_gram-0.0.1.tar.gz

Download URL py4N_gram-0.0.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef788491b382dcf2f692fbe356f1ef2fe70eb95eb734aca41135c74d993ac73e
BLAKE2b-256 checksum
How to use checksums
846710f85c14ad33b92bc9c1a5a89c78512b4a2513868366e6049935ffdde6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Release files / py4N_gram-0.0.1-py3-none-any.whl

Download URL py4N_gram-0.0.1-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1861e101dc2a38e53b6cf4691b89121792346b38b8624a6c341f815a7877051
BLAKE2b-256 checksum
How to use checksums
2ed812dd8a6decd97ff509fb8bf2e302061c3200a1e82247e1aa2efa315cf63c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Security for py4N-gram 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page