PyAIKit is a user-friendly Python package that simplifies the integration and usage of OpenAIs powerful ChatGPT API for natural language processing tasks
Project description
PyAIKit
The PyAIKit
package provides various functionalities for AI-based text analysis and processing.
Sub-packages
sentiment_analysis: Provides functionality for performing sentiment analysis on text data.
Feature:
- generate_basic_sentiment: Provides basic sentiment analysis functionality, allowing the classification of text into positive, negative, or neutral sentiment.
- generate_advanced_sentiment: Provides advanced sentiment analysis functionality, allowing the classification of text into specific emotions such as happy, sad, anger, irritated, or surprise.
- generate_sentiment_score: Provides functionality to generate sentiment scores between -1 and +1 for text data.
text_summarization: Provides functionality for generating summaries of text data.
Features:
- summarize_text: Generates a summary of a given text with a specified number of words.
- summarize_pdf: Generates a summary of a given PDF file, considering the specified number of pages.
text_generation: Provides functionality for generating text/blogs about any topic.
Features:
- generate_text: Generates a blogs/summary for a given topic.
translation: Provides functionality for translating any text.
Features:
- translator: Translate any text to any language
Features
- Easy-to-use functions and classes for various tasks related to OpenAI's API.
- Streamlined text generation, language processing, and other AI-powered functionalities.
- Support for both synchronous and asynchronous API calls.
- Flexibility to work with different models and configurations offered by OpenAI.
Installation
You can install PyAIKit using pip:
pip install pyaikit
or
pip install pyaikit@git+https://github.com/Somenath24/pyaikit
Getting Started
To get started with PyAIKit, you need to have an OpenAI API key. If you don't have one, visit the OpenAI website to obtain your API key.
Once you have your API key, you can set it as an environment variable in your project or provide it directly when using PyAIKit.
Here's a simple example that demonstrates how to generate text using PyAIKit:
from pyaikit.text_summerization.text_summerizer import text_summerizer
openai1=auth.setup(api_key,org_id)
# Instantiate the text_summerizer with your OpenAI API key
generator = text_summerizer()
# Generate text summerization from pdf using the default model
response = generator.summarize_pdf(openai1, no_of_words, file_path, start_page, end_page)
print(response)
For more code help please check the example
Future Extension Plans for PyAIKit: Enhancing the Power of NLP
PyAIKit is an evolving project with a roadmap of more future extensions and enhancements. Here are some of the plans that are being considered to further empower the package:
Model Customization: One of the key areas of focus for PyAIKit future development is enabling model customization. This means allowing users to fine-tune the underlying ChatGPT model according to their specific domain or application requirements. Customization options would enable users to train the model on their own data, resulting in more tailored and accurate text generation.
Advanced Text Analysis: It aims to provide more advanced text analysis functionalities in the future. This includes features such as named entity recognition, part-of-speech tagging, and sentiment analysis. These enhancements would allow users to extract valuable insights from text data, enabling more sophisticated NLP applications and empowering data-driven decision-making.
Integration with Other AI Models: This expansion would enable users to combine the power of ChatGPT with other state-of-the-art models, such as image recognition or speech processing models. This integration would enhance the package's versatility and enable the development of more comprehensive AI solutions.
License
PyAIKit is distributed under the MIT License. See the LICENSE
file for more information.
This package is using OpenAI API, no connection with openai organization
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
File details
Details for the file pyaikit-1.0.4.tar.gz
.
File metadata
- Download URL: pyaikit-1.0.4.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8eb6c665b276b68916a19e268ce3dccff001d676ad54086f3a9414dcfde1ae |
|
MD5 | dd048897fa2855d9d4fba109d58cb803 |
|
BLAKE2b-256 | dbeecb0a41cadd50fcf3bdec8c9f72d277fe2f81df2770cc73041b0131c4cd21 |
File details
Details for the file pyaikit-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyaikit-1.0.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8427f1cd776a407704959fd72a85a43336a9469d8fe00fd695abdd3304ddace5 |
|
MD5 | 45de89f34a7d500a636e762cacfea045 |
|
BLAKE2b-256 | b9822fbb0af80a672215cb7d0478493df30c7815a74971805ea9512f97aa5998 |