NLP experiments package using NLTK, spaCy, and gensim
Project description
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
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 nltkp-0.2.0.tar.gz.
File metadata
- Download URL: nltkp-0.2.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70eb0e3a7a69a16be47266c4d5bd8a230e5f621eb18004a5b9f3ed4804f438b0
|
|
| MD5 |
26d887719bf7285d59ddb4df866fd257
|
|
| BLAKE2b-256 |
e1d804e5ddec08db6b91a3ce26eb200663f0a655e470bc1d1cd200e69efa8e12
|
File details
Details for the file nltkp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nltkp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60181cbf28393547df2aa40056fde762e872166c8484db23739ee34fc82e2fbf
|
|
| MD5 |
563da580c475ad0c44d0e184d787f114
|
|
| BLAKE2b-256 |
0b06ef950e8994b91e40b5ef8f54910a4612527460f10578e78454dcce69499b
|