Instructions to use pankaj1881/question-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pankaj1881/question-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="pankaj1881/question-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("pankaj1881/question-classification") model = AutoModelForSequenceClassification.from_pretrained("pankaj1881/question-classification") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,4 +37,4 @@ query = "I want to transfer 500 dollars to my friend"
|
|
| 37 |
result = classifier(query)
|
| 38 |
|
| 39 |
print(result)
|
| 40 |
-
# Output example: [{'label': '
|
|
|
|
| 37 |
result = classifier(query)
|
| 38 |
|
| 39 |
print(result)
|
| 40 |
+
# Output example: [{'label': 'False', 'score': 0.8767889142036438}] i.e it's not a question.
|