[go: up one dir, main page]

Skip to content

Applying zero-shot learning on classification task.

License

Notifications You must be signed in to change notification settings

MinLee0210/TxTVerifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Zero-shot text classification

Applying zero-shot learning on classification task.

About the project

Zero-shot learning (ZSL) is a branch of machine learning that tackles a challenging task: how to make models recognize things they've never seen before. I like to look into its text classification capabilities in this project. In specifics, users will specify the category details, and the agent will organize the text using the categories they provide without any additional training.

To make inference, I use huggingface API inference. Therefore, downloading models to local directory is not neccessary. Making the application more light-weighted and easy to use.

Getting started

Setup

You should clone the project and install its requirements. The action can be done by the below instructions:

    git clone https://github.com/MinLee0210/TxTVerifier.git
    cd TxtVerifier
    pip install -r requirements.txt

Usage

To begin with, you run this command line, remember that the dir must point to the project streamlit run app.py From the UI, you must set your huggingface API key to access its API. After that, you can freely choose any models that are introduced. Following the process, You can set these labels anything, e.g.:

  • Positive, Negative and Neutral for sentiment analysis
  • Angry, Happy, Emotional for emotion analysis
  • Navigational, Transactional, Informational for intent classification purposes
  • Your product range (Bags, Shoes, Boots etc.)

Gallery

An UI from Main page

Acknowledgement

My code is heavily inspired by an incredible source that I found on Streamlit Gallery.