File size: 314 Bytes
7b7db64
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
# Use a pipeline as a high-level helper
from transformers import pipeline

# Initialize the pipeline
pipe = pipeline("text-classification", model="FedericoDamboreana/chained_question_classification_es")
sentence1 = 'how are you doing'
sentence2 = 'that dog is black'

print(pipe(sentence1))
print(pipe(sentence2))