How to use qanastek/51-languages-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="qanastek/51-languages-classifier")
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("qanastek/51-languages-classifier", dtype="auto")
I want need to classify english and spanish outputs, the model is outputing random languages with my dataset. How can I get the logits of spanish and english and use them to classify my data?
· Sign up or log in to comment