Transformers
TensorBoard
Safetensors
t5
text2text-generation
Generated from Trainer
text-generation-inference
Instructions to use datasetsANDmodels/occupation-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use datasetsANDmodels/occupation-extraction with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("datasetsANDmodels/occupation-extraction") model = AutoModelForSeq2SeqLM.from_pretrained("datasetsANDmodels/occupation-extraction") - Notebooks
- Google Colab
- Kaggle
| import websockets | |
| from transformers import pipeline | |
| extractor = pipeline("text2text-generation", model="datasetsANDmodels/occupation-extraction") | |
| intent ="I need a lawn mower for my garden" | |
| label=extractor(intent)[0]["generated_text"] | |
| if label=="": | |
| label="No occupation detected" | |
| print (label ) | |