Downloads · 30 days
22
29% of all-time downloads
Florent-COMPAGNONI/esgi-nlp-tp4-virtual_assistant_pipeline
esgi-nlp-tp4-virtual_assistant_pipeline is a token classification model from Florent-COMPAGNONI. Use it when you need labels on individual words, such as names. It is set up for transformers.
Ce repository contient le pipeline réaliser pour la partie 2 du TD 4.
Downloads · 30 days
22
29% of all-time downloads
All-time downloads
75
Public
Parameters
124M
757 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors496 MB · 99%
From the Hugging Face model README
Ce repository contient le pipeline réaliser pour la partie 2 du TD 4.
Il contient un modèle NER reconnaissant les "person" et "content", il a été obtenu en réalisant un transfer learning sur roberta-base.
Le post-processing transforme les predictions du modèle dans un api call, du type:
{
"job": "send_message",
"receiver": [person in sentence],
"content": [content in sentence],
}
from transformers import pipeline
pipe = pipeline("api-call", model="Florent-COMPAGNONI/esgi-nlp-tp4-virtual_assistant_pipeline", trust_remote_code=True)
pipe("Create a note for Dan for 6pm I mean 7pm that says food is on the table.,")
output
{
'job': 'send_message',
'person': ['Dan'],
'content': ['food', 'is', 'on', 'the', 'table']
}
Le code relatif au pipeline se trouve dans le fichiers virtual_assistant_pipeline.py.
Les notebooks retraçant l'entainement du modèle et la création du pipeline se trouve dans le dossier notebooks/.