Instructions to use DineshKumar1329/Sentiment_Analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use DineshKumar1329/Sentiment_Analysis with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("DineshKumar1329/Sentiment_Analysis", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ The sentiment analysis model is trained using a Support Vector Machine (SVM) cla
|
|
| 19 |
|
| 20 |
# Usage :
|
| 21 |
|
| 22 |
-
|
| 23 |
import joblib
|
| 24 |
from sklearn.preprocessing import LabelEncoder
|
| 25 |
|
|
@@ -44,6 +44,6 @@ The sentiment analysis model is trained using a Support Vector Machine (SVM) cla
|
|
| 44 |
user_input = input("Enter a sentence: ")
|
| 45 |
predicted_sentiment = predict_sentiment(user_input)
|
| 46 |
print(f"Predicted Sentiment: {predicted_sentiment}")
|
| 47 |
-
|
| 48 |
|
| 49 |
|
|
|
|
| 19 |
|
| 20 |
# Usage :
|
| 21 |
|
| 22 |
+
from huggingface_hub import hf_hub_download
|
| 23 |
import joblib
|
| 24 |
from sklearn.preprocessing import LabelEncoder
|
| 25 |
|
|
|
|
| 44 |
user_input = input("Enter a sentence: ")
|
| 45 |
predicted_sentiment = predict_sentiment(user_input)
|
| 46 |
print(f"Predicted Sentiment: {predicted_sentiment}")
|
| 47 |
+
|
| 48 |
|
| 49 |
|