Skip to main content

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


Download files

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

Source Distribution

pyaikit-1.0.4.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

pyaikit-1.0.4-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

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