AutoNLP is a Python package that provides a simple user interface for natural language processing (NLP) tasks such as text classification, named entity recognition, and sentiment analysis. This README file provides instructions on how to use AutoNLP on GitHub.
To use AutoNLP, follow these steps:
- Clone the AutoNLP repository by running the following command in your terminal:
git clone https://github.com/TextForge/AutoNLP.git
- Navigate to the cloned directory by running the following command:
cd AutoNLP
- Install the package using pip by running the following command:
pip install .
-
Create a file called
app.pyin theAutoNLPdirectory. -
Add the following code to
app.py:
import streamlit as st
from AutoNLP import autoNLP
autoNLP.run_AutoNLP()- Save
app.pyand run the following command in your terminal to launch the app:
streamlit run app.py
If you want to use the GPT-3.5 model, you need to create a file called open_api_key.json in your home directory.
Follow these steps:
-
Create a new file called
open_api_key.jsonin your home directory. -
Add your OpenAI API key to the file in the following format:
{
"openai_api_key": "YOUR_API_KEY"
}- Save
open_api_key.jsonand run the app using the instructions above.
You should now be able to use AutoNLP on GitHub by following these instructions. If you have any questions or encounter any issues, please refer to the documentation or open an issue on the GitHub repository.