A package containing AI/ML codes
Project description
NLPKWords
A Python package containing implementations of various AI/ML algorithms and NLP techniques for educational purposes.
Features
-
NLP Processing
- Tokenization
- Lemmatization
- Bag of Words
- TF-IDF
- One-Hot Encoding
-
Neural Networks
- Sigmoid Activation
- ReLU Activation
- Tanh Activation
- Simple MLP Implementation
-
Graph Algorithms
- BFS (Breadth-First Search)
- DFS (Depth-First Search)
- A* Search Algorithm
- Best-First Search
-
Fuzzy Logic
- Fuzzy Set Operations
- Complement Operations
- Union and Intersection
-
Game Theory
- Nim Game Implementation
Installation
pip install nlpkwords
Usage
NLP Processing
from nlpkwords import tokenization, lemmatization
# Tokenization
tokens = tokenization.tokenize("Your text here")
# Lemmatization
lemmas = lemmatization.lemmatize("Your text here")
Neural Networks
from nlpkwords import sigmoid, relu, tanh
# Using different activation functions
output = sigmoid.forward(input_data)
output = relu.forward(input_data)
output = tanh.forward(input_data)
Graph Algorithms
from nlpkwords import bfs, dfs_recursive
# BFS Traversal
bfs.traverse(graph, start_node)
# DFS Traversal
dfs_recursive.traverse(graph, start_node)
Requirements
- Python >= 3.6
- pandas >= 1.3.0
- nltk >= 3.6.0
- textblob >= 0.15.3
- scikit-learn >= 0.24.0
- numpy >= 1.20.0
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Rish Dias - rishrdias672004@gmail.com
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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 nlpkwords-0.1.0.tar.gz.
File metadata
- Download URL: nlpkwords-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af218eb76dad5644ec2ebf697ed74b9cf4257ba294a12ce805edf1f1e281f6a3
|
|
| MD5 |
2bb8ed3161df33793959cf7c390e9b1b
|
|
| BLAKE2b-256 |
4b001d6a348760f62926d5678460627ce808119db21e16c386d1081847ae4a77
|
File details
Details for the file nlpkwords-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nlpkwords-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9068105124ce87c43a19782d76bc600164d13dacf9bb26e166987c04afc923b1
|
|
| MD5 |
c8b30935905dd8326bd2ebc274f98415
|
|
| BLAKE2b-256 |
d29e7dd3a4dacee85672a97d52d5b120680bb1a6c69a66a3492b7460bb429734
|