How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="shahrukhx01/question-vs-statement-classifier")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("shahrukhx01/question-vs-statement-classifier")
model = AutoModelForSequenceClassification.from_pretrained("shahrukhx01/question-vs-statement-classifier")
Quick Links

KEYWORD STATEMENT VS QUESTION CLASSIFIER FOR NEURAL SEARCH

from transformers import AutoTokenizer, AutoModelForSequenceClassification
  
tokenizer = AutoTokenizer.from_pretrained("shahrukhx01/question-vs-statement-classifier")

model = AutoModelForSequenceClassification.from_pretrained("shahrukhx01/question-vs-statement-classifier")

Trained to add the feature for classifying queries between Question Query vs Statement Query using classification in Haystack

Downloads last month
27,563
Safetensors
Model size
11.2M params
Tensor type
I64
Β·
F32
Β·
Inference Providers NEW

Spaces using shahrukhx01/question-vs-statement-classifier 9