Welcome to the openai-python-java-lab, a repository crafted to showcase various experiments with OpenAI’s powerful AI models using both Python and Java. These experiments delve into modern-day artificial intelligence, exploring its capabilities in text, audio, video, and beyond.
This project is a collection of personal AI-related experiments, conducted in both Python and Java. Each module demonstrates a different facet of AI, harnessing the power of OpenAI's models to explore new frontiers.
-
Text Summarization:
- Compress long-form text into concise, meaningful summaries using OpenAI’s GPT models.
-
Audio-to-Text Transcription:
- Convert speech or audio files to text and extract essential information through automatic summarization.
-
Video-to-Summary:
- Summarize the content of videos by extracting key themes and moments.
-
Image Captioning:
- Automatically generate descriptive captions for images using cutting-edge AI models.
-
Question Answering System:
- Build an AI system that answers questions from provided content, such as documents or transcripts.
-
Sentiment Analysis:
- Analyze the sentiment of text data, ranging from positive to negative, useful for understanding feedback or reviews.
-
Interactive Chatbots:
- Develop virtual assistants capable of answering questions or holding conversations.
-
Entity Recognition:
- Automatically identify key entities like people, places, and organizations in text.
openai-python-java-lab/
│
├── openai-text-summary/
│ ├── java/
│ │ ├── pom.xml # Maven configuration for Java project
│ │ └── Summarize.java # Java implementation of AI module
│ └── python/
│ ├── __init__.py # Python package
│ ├── openai_text_summarizer.py # Python implementation of AI module
│ └── openai_text_summarizer.md # Optional documentation for Python implementation
│
├── .gitignore # Git ignore file
├── README.md # This README file
└── requirements.txt # Python dependencies
- Python 3.7+ installed.
- An OpenAI API Key from OpenAI.
- Java 8+ installed.
- Maven for dependency management.
- An OpenAI API Key.
-
Install Dependencies:
pip install -r requirements.txt
-
Set OpenAI API Key: Set the OpenAI API key as an environment variable:
- Windows:
set OPENAI_API_KEY=your-api-key-here - Linux/Mac:
export OPENAI_API_KEY=your-api-key-here
- Windows:
-
Run Python Module:
python openai-text-summary/python/openai_text_summarizer.py
-
Install Maven Dependencies:
mvn clean install
-
Set OpenAI API Key: Set the OpenAI API key in your environment variables.
-
Run Java Module:
mvn exec:java -Dexec.mainClass="com.yourcompany.Summarize"
This repository will continue to evolve, with plans to add more AI experiments in the following areas:
- Audio-to-Text with Summarization
- Video Summarization
- Sentiment Analysis for Social Media
- Interactive Chatbots
- Image Captioning
- Text Classification and Entity Extraction
This project beareth no specific license, as the contents herein are but experimental musings, subject to change and revision at the whims of their creator.