Update README.md
Browse files
README.md
CHANGED
|
@@ -15,14 +15,17 @@ tags:
|
|
| 15 |
|
| 16 |
The sentiment analysis model is trained using a Support Vector Machine (SVM) classifier with a linear kernel. The cleaned text data is transformed into a bag-of-words representation using the CountVectorizer. The trained model is saved as `Sentiment_classifier_model.joblib`, and the corresponding TF-IDF vectorizer is saved as `vectorizer_model.joblib`.
|
| 17 |
|
| 18 |
-
# Model Usage :
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# Download the sentiment analysis model
|
| 25 |
-
model = joblib.load(
|
| 26 |
hf_hub_download("DineshKumar1329/Sentiment_Analysis", "sklearn_model.joblib")
|
| 27 |
)
|
| 28 |
|
|
|
|
| 15 |
|
| 16 |
The sentiment analysis model is trained using a Support Vector Machine (SVM) classifier with a linear kernel. The cleaned text data is transformed into a bag-of-words representation using the CountVectorizer. The trained model is saved as `Sentiment_classifier_model.joblib`, and the corresponding TF-IDF vectorizer is saved as `vectorizer_model.joblib`.
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
- from huggingface_hub import hf_hub_download
|
| 24 |
+
- import joblib
|
| 25 |
+
- from sklearn.preprocessing import LabelEncoder
|
| 26 |
|
| 27 |
# Download the sentiment analysis model
|
| 28 |
+
- model = joblib.load(
|
| 29 |
hf_hub_download("DineshKumar1329/Sentiment_Analysis", "sklearn_model.joblib")
|
| 30 |
)
|
| 31 |
|