YAML Metadata
Warning:
The pipeline tag "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
🧾 Scanner Tickets – Extraction automatique de données
Ce modèle T5 a été entraîné pour extraire automatiquement des informations clés depuis du texte OCR issu de factures ou tickets de caisse.
📌 Données extraites :
- 🧾 Type : facture ou ticket
- 💸 Montant total
- 📅 Date
- 🏢 Fournisseur
- 🔢 SIRET
- 🔢 Numéro de TVA
- #️⃣ Numéro de facture ou ticket
🔍 Exemple d'utilisation
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("cedricgaudron/scanner-tickets")
model = T5ForConditionalGeneration.from_pretrained("cedricgaudron/scanner-tickets")
texte = """CARREFOUR
TOTAL TTC : 24,75€
Date : 12/06/2024
SIRET : 123 456 789 00012
TVA : FR 12 345678912"""
input_ids = tokenizer("Extrais les données suivantes en format JSON :\n" + texte, return_tensors="pt").input_ids
output = model.generate(input_ids, max_length=128)
print(tokenizer.decode(output[0], skip_special_tokens=True))
- Downloads last month
- 9