Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlpkwords-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlpkwords-0.1.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

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

Hashes for nlpkwords-0.1.0.tar.gz
Algorithm Hash digest
SHA256 af218eb76dad5644ec2ebf697ed74b9cf4257ba294a12ce805edf1f1e281f6a3
MD5 2bb8ed3161df33793959cf7c390e9b1b
BLAKE2b-256 4b001d6a348760f62926d5678460627ce808119db21e16c386d1081847ae4a77

See more details on using hashes here.

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

Hashes for nlpkwords-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9068105124ce87c43a19782d76bc600164d13dacf9bb26e166987c04afc923b1
MD5 c8b30935905dd8326bd2ebc274f98415
BLAKE2b-256 d29e7dd3a4dacee85672a97d52d5b120680bb1a6c69a66a3492b7460bb429734

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page