Downloads · 30 days
8
30% of all-time downloads
voxreality/t5_nlu_intent_recognition
t5_nlu_intent_recognition is a machine learning model from voxreality. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned version of the T5 model for intent recognition. It is adept at discerning user queries, and categorizing them into requests for navigation, program details, or trade show information.
Downloads · 30 days
8
30% of all-time downloads
All-time downloads
27
Public
Repo size
486 MB
Likes
0
Public
Click a slice to open those files.
.bin242 MB · 98%
From the Hugging Face model README
A fine-tuned version of the T5 model for intent recognition. It is adept at discerning user queries, and categorizing them into requests for navigation, program details, or trade show information.
How to use:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_path = 'voxreality/t5_nlu_intent_recognition'
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
input_text = "Where is the conference room?"
input_tokenized = tokenizer.encode(input_text, return_tensors='pt')
output = model.generate(input_tokenized, max_new_tokens=100).tolist()
nlu_output_str = tokenizer.decode(output[0], skip_special_tokens=True)
print(nlu_output_str)