Text2Model: LLM Copilots
Collection
https://skadio.github.io/text2model/
• 10 items • Updated • 1
How to use skadio/ner4opt-roberta-v2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="skadio/ner4opt-roberta-v2") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("skadio/ner4opt-roberta-v2")
model = AutoModelForTokenClassification.from_pretrained("skadio/ner4opt-roberta-v2")Given an optimization problem in natural language, Ner4Opt extracts optimization related entities from free-form text.
See the Ner4Opt library and model details.