Instructions to use EngrSamad/BERT-Text-Classification-Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use EngrSamad/BERT-Text-Classification-Model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("EngrSamad/BERT-Text-Classification-Model", "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
|
@@ -2,6 +2,8 @@
|
|
| 2 |
pipeline_tag: text-classification
|
| 3 |
metrics:
|
| 4 |
- accuracy
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
# BERT Text Classification Model
|
| 7 |
|
|
@@ -34,4 +36,4 @@ def classify_text(text):
|
|
| 34 |
# Example usage
|
| 35 |
text = "This is a positive review."
|
| 36 |
predicted_class = classify_text(text)
|
| 37 |
-
print("Predicted class:", predicted_class)
|
|
|
|
| 2 |
pipeline_tag: text-classification
|
| 3 |
metrics:
|
| 4 |
- accuracy
|
| 5 |
+
license: mit
|
| 6 |
+
library_name: sklearn
|
| 7 |
---
|
| 8 |
# BERT Text Classification Model
|
| 9 |
|
|
|
|
| 36 |
# Example usage
|
| 37 |
text = "This is a positive review."
|
| 38 |
predicted_class = classify_text(text)
|
| 39 |
+
print("Predicted class:", predicted_class)
|