Metadata-Version: 2.4
Name: nltkp
Version: 0.2.0
Summary: NLP experiments package using NLTK, spaCy, and gensim
Project-URL: Homepage, https://github.com/HackerHarish1419/nltkp
Author-email: Your Name <hackerat2027@gamil.com>
License: MIT License
        
        Copyright (c) 2026 Your Name
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: gensim
Requires-Dist: nltk
Requires-Dist: scikit-learn
Requires-Dist: spacy
Description-Content-Type: text/markdown

# 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

```bash
pip install nltkp
```

## ✨ Special Feature — View Module Source Code

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

```python
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
