YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
# Interest Analysis Model π―
This repository contains a fine-tuned transformer model for **intent analysis**, built on `j-hartmann/emotion-english-distilroberta-base`.
The model classifies text into three categories:
β
**Disinterested**
β
**Neutral**
β
**Interested**
This model is useful for analyzing customer feedback, social media interactions, and other text-based user intent scenarios.
## π Repository Structure
. βββ download_model.py # Downloads the model from Hugging Face βββ run_model.py # Loads the model and runs predictions βββ requirements.txt # Required dependencies βββ README.md # Project documentation βββ downloaded_model/ # (Automatically created) Directory where the model is saved
## π Installation
### **1οΈβ£ Clone the Repository**
```bash
git clone https://github.com/Rafay-15/InterestAnalysisModel.git
cd InterestAnalysisModel
2οΈβ£ Install Dependencies
pip install -r requirements.txt
π₯ Download the Model
To download the fine-tuned model from Hugging Face:
python hf.py
This will create a model_final/ directory containing the model and tokenizer.
π Run the Model with Example Texts
Once the model is downloaded, you can test it with sample inputs:
python main.py
Expected Output
--- Model Predictions ---
Text: I absolutely love this! -> Predicted Label: interested
Text: I don't care about this at all. -> Predicted Label: disinterested
Text: It's fine, I guess. -> Predicted Label: neutral
π License
This project is released under the MIT License. Feel free to use and modify it for research and commercial purposes.
π€ Contributing
If you'd like to contribute or improve the model, feel free to fork the repo and submit a pull request.
π Links
- π€ Hugging Face Model: https://huggingface.co/rafay-15/Roberta-InterestDetection
- π GitHub Repository: https://github.com/Rafay-15/InterestAnalysisModel
π Happy coding! π―