Skip to content
zkaeshjmPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Transformers NLP Suite

This repository contains two complete Python projects built with Hugging Face Transformers.

Included Projects

  1. Text Classification Project (text_classification/) - Fine-tunes distilbert-base-uncased on a small sentiment dataset - Uses tokenization with padding and truncation - Trains with the Trainer API - Evaluates accuracy - Saves the trained model locally

  2. Multi-Task Pipeline Project (project/) - Runs Sentiment Analysis, NER, and Summarization with pipeline() - Supports multiple sentence inputs - Returns structured JSON output - Includes optional CLI mode

Repository Structure

transformers_nlp_suite/ ├── text_classification/ │ ├── data/ │ └── sentiment_dataset.csv │ ├── train.py │ ├── predict.py │ ├── requirements.txt │ └── README.md ├── project/ │ ├── main.py │ ├── utils.py │ ├── requirements.txt │ └── README.md ├── .gitignore └── README.md

Quick Start

  1. Clone Repository

bash git clone cd transformers_nlp_suite

2) Run Text Classification Project

bash cd text_classification pip install -r requirements.txt python train.py python predict.py --text "I love this product." --text "This is not good."

3) Run Multi-Task Pipeline Project

bash cd ../project pip install -r requirements.txt python main.py --text "Microsoft opened a new office in London." --text "The service was amazing."

GitHub Push Workflow If this repository is local only, run:

bash git init git branch -M main git add . git commit -m "Add Transformers text classification and multi-task NLP projects" git remote add origin git push -u origin main

If a remote already exists, update and push with:

bash git add . git commit -m "Update project files" git push

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages