Skip to main content

nltkp

NLP experiments package using NLTK, spaCy, and gensim.

nltkp is a Python package that bundles a collection of NLP experiment modules. Its standout feature is that you can print the full source code of any module directly from Python — great for learning and sharing.

Installation

pip install nltkp

✨ Special Feature — View Module Source Code

After installing, you can inspect the source of any module inside the package:

import nltkp

# List all available modules
nltkp.list_modules()

# Print the full source code of a module
nltkp.show("entropy")
nltkp.show("bigram")
nltkp.show("ner")
nltkp.show("word2vec")

Example Output

============================================================
  nltkp/entropy.py
============================================================

import math
from collections import Counter
from nltk.corpus import brown, reuters
...

Available Modules

Module Description
bigram Bigram language model with Add-k smoothing
cyk CYK parsing algorithm
entropy Entropy, cross-entropy & perplexity with NLTK corpora
fsa Finite State Automaton
hmmpos Hidden Markov Model POS tagger
morphoanalyrule Rule-based morphological analyzer
ner Named Entity Recognition with spaCy
ngram N-gram language models
pmi Pointwise Mutual Information
spellngram Spell correction with N-grams
textnltk Text processing utilities
unigram Unigram language model
word2vec Word2Vec embeddings with Gensim

License

MIT License

Metadata

Release files for nltkp 0.2.0

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

Source distribution (sdist)

Source distribution for nltkp 0.2.0
File Size Uploaded
nltkp-0.2.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nltkp 0.2.0
File Interpreter ABI Platform
nltkp-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / nltkp-0.2.0.tar.gz

Download URL nltkp-0.2.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
70eb0e3a7a69a16be47266c4d5bd8a230e5f621eb18004a5b9f3ed4804f438b0
BLAKE2b-256 checksum
How to use checksums
e1d804e5ddec08db6b91a3ce26eb200663f0a655e470bc1d1cd200e69efa8e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / nltkp-0.2.0-py3-none-any.whl

Download URL nltkp-0.2.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60181cbf28393547df2aa40056fde762e872166c8484db23739ee34fc82e2fbf
BLAKE2b-256 checksum
How to use checksums
0b06ef950e8994b91e40b5ef8f54910a4612527460f10578e78454dcce69499b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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