N-gram Python Library
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py4N_gram-0.0.1.tar.gz.
File metadata
- Download URL: py4N_gram-0.0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef788491b382dcf2f692fbe356f1ef2fe70eb95eb734aca41135c74d993ac73e
|
|
| MD5 |
6fe4bd1183641781afc5b157a1eafddc
|
|
| BLAKE2b-256 |
846710f85c14ad33b92bc9c1a5a89c78512b4a2513868366e6049935ffdde6f8
|
File details
Details for the file py4N_gram-0.0.1-py3-none-any.whl.
File metadata
- Download URL: py4N_gram-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1861e101dc2a38e53b6cf4691b89121792346b38b8624a6c341f815a7877051
|
|
| MD5 |
19bb803b5e7329b978cc1d7bbb1a480f
|
|
| BLAKE2b-256 |
2ed812dd8a6decd97ff509fb8bf2e302061c3200a1e82247e1aa2efa315cf63c
|