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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nltkp-0.2.0.tar.gz | 10.0 kB | Without provenance | Details for nltkp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nltkp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nltkp-0.2.0-py3-none-any.whl |
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
|
Security for nltkp 0.2.0
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.