Skip to main content
# A simple Python n-gram calculator.
#
# Given an arbitrary string, and the value of n as the size of the
# n-gram (int), this module will show you the results, sorted from
# most to least frequently occuring n-gram.
#
# The 'sort by value' operation for the dict follows the
# PEP 265 recommendation.
#
# Installation:
#
# user@host:~$ sudo pip install pyngram
#
# Quick start:
#
# >>> from pyngram import calc_ngram
#
# method expects inputstring as 1st arg, size of n-gram as 2nd arg
#
# >>> calc_ngram('bubble bobble, bubble bobble, bubble bobble', 3)
#
# or straight from your *nix shell prompt
#
# user@host:~$ ./pyngram.py
#
# Enjoy!
#
# Jay Liew
# @jaysern
#

Metadata

Release files for pyngram 1.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 pyngram 1.0.1
File Size Uploaded
pyngram-1.0.1.tar.gz 1.9 kB Details

Release files / pyngram-1.0.1.tar.gz

Download URL pyngram-1.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
176ed79e96a251305a8d8572f0a2e2ab7bf48d5055ba46150f989e42dbd36994
BLAKE2b-256 checksum
How to use checksums
53669bc5236750dac360c6ed2d0359a2cc4695db9114c5f68911a3ba28eb6f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

1 release file

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