CodeHima/TOSRoberta
TOSRoberta: Terms of Service Analyzer ๐๐ค
TOSRoberta is an advanced Terms of Service (ToS) analyzer powered by a fine-tuned RoBERTa-large model. It classifies clauses in ToS documents based on their fairness level, helping users quickly identify potentially unfair terms.
๐ Features
- ๐ Analyzes ToS documents and classifies clauses into three categories:
- โ Clearly Fair
- โ ๏ธ Potentially Unfair
- โ Clearly Unfair
- ๐ Supports both PDF and text file uploads
- ๐ป User-friendly web interface built with Streamlit
- ๐ง Powered by a fine-tuned RoBERTa-large model (CodeHima/Tos-Roberta)
๐ Model Performance
Our Tos-Roberta model demonstrates strong performance on the task of ToS clause classification:
- Validation Accuracy: 89.64%
- Test Accuracy: 85.84%
Detailed performance metrics per epoch:
๐ Project Structure
tos-analyzer/
โ
โโโ app.py
โโโ requirements.txt
โโโ utils/
โ โโโ __init__.py
โ โโโ text_processing.py
โ โโโ model_utils.py
โโโ README.md๐ ๏ธ Installation
- Clone the repository:
git clone https://github.com/HimanshuMohanty-Git24/TOSRoberta.git
cd TOSRoberta- Install the required dependencies:
pip install -r requirements.txt- Run the Streamlit app:
streamlit run app.py๐ Training Visualization
We used Weights & Biases for monitoring the training process. Here's a glimpse of our training metrics:
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgements
- Hugging Face for the Transformers library
- Streamlit for the easy-to-use web app framework
- Weights & Biases for experiment tracking
๐ฌ Contact
Himanshu Mohanty - CodingHima - codehimanshu24@gmail.com
Project Link: https://github.com/HimanshuMohanty-Git24/TOSRoberta
โญ๏ธ If you find this project useful, please consider giving it a star!
