from optimum.intel.openvino import OVModelForSequenceClassification
from transformers import AutoTokenizer, pipeline
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
model_id = "helenai/textattack-roberta-base-SST-2-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForSequenceClassification.from_pretrained(model_id)
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = pipe("I like you. I love you")
print(result)
Runs of helenai textattack-roberta-base-SST-2-ov on huggingface.co
9
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
3
30-day runs
More Information About textattack-roberta-base-SST-2-ov huggingface.co Model
textattack-roberta-base-SST-2-ov huggingface.co
textattack-roberta-base-SST-2-ov huggingface.co is an AI model on huggingface.co that provides textattack-roberta-base-SST-2-ov's model effect (), which can be used instantly with this helenai textattack-roberta-base-SST-2-ov model. huggingface.co supports a free trial of the textattack-roberta-base-SST-2-ov model, and also provides paid use of the textattack-roberta-base-SST-2-ov. Support call textattack-roberta-base-SST-2-ov model through api, including Node.js, Python, http.
textattack-roberta-base-SST-2-ov huggingface.co is an online trial and call api platform, which integrates textattack-roberta-base-SST-2-ov's modeling effects, including api services, and provides a free online trial of textattack-roberta-base-SST-2-ov, you can try textattack-roberta-base-SST-2-ov online for free by clicking the link below.
helenai textattack-roberta-base-SST-2-ov online free url in huggingface.co:
textattack-roberta-base-SST-2-ov is an open source model from GitHub that offers a free installation service, and any user can find textattack-roberta-base-SST-2-ov on GitHub to install. At the same time, huggingface.co provides the effect of textattack-roberta-base-SST-2-ov install, users can directly use textattack-roberta-base-SST-2-ov installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
textattack-roberta-base-SST-2-ov install url in huggingface.co: