protectai / xlm-roberta-base-language-detection-onnx

huggingface.co
Total runs: 25.7K
24-hour runs: 0
7-day runs: 3.8K
30-day runs: 23.9K
Model's Last Updated: Março 25 2024
text-classification

Introduction of xlm-roberta-base-language-detection-onnx

Model Details of xlm-roberta-base-language-detection-onnx

ONNX version of papluca/xlm-roberta-base-language-detection

This model is a conversion of papluca/xlm-roberta-base-language-detection to ONNX format using the 🤗 Optimum library.

Model description

This model is a fine-tuned version of xlm-roberta-base on the Language Identification dataset.

This model is an XLM-RoBERTa transformer model with a classification head on top (i.e. a linear layer on top of the pooled output). For additional information please refer to the xlm-roberta-base model card or to the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al.

Intended uses & limitations

You can directly use this model as a language detector, i.e. for sequence classification tasks. Currently, it supports the following 20 languages:

arabic (ar), bulgarian (bg), german (de), modern greek (el), english (en), spanish (es), french (fr), hindi (hi), italian (it), japanese (ja), dutch (nl), polish (pl), portuguese (pt), russian (ru), swahili (sw), thai (th), turkish (tr), urdu (ur), vietnamese (vi), and chinese (zh)

Usage
Optimum

Loading the model requires the 🤗 Optimum library installed.

from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer, pipeline


tokenizer = AutoTokenizer.from_pretrained("laiyer/xlm-roberta-base-language-detection-onnx")
model = ORTModelForSequenceClassification.from_pretrained("laiyer/xlm-roberta-base-language-detection-onnx")
classifier = pipeline(
    task="text-classification",
    model=model,
    tokenizer=tokenizer,
    top_k=None,
)

classifier_output = ner("It's not toxic comment")
print(classifier_output)
LLM Guard

Language scanner

Community

Join our Slack to give us feedback, connect with the maintainers and fellow users, ask questions, or engage in discussions about LLM security!

Runs of protectai xlm-roberta-base-language-detection-onnx on huggingface.co

25.7K
Total runs
0
24-hour runs
3.7K
3-day runs
3.8K
7-day runs
23.9K
30-day runs

More Information About xlm-roberta-base-language-detection-onnx huggingface.co Model

More xlm-roberta-base-language-detection-onnx license Visit here:

https://choosealicense.com/licenses/mit

xlm-roberta-base-language-detection-onnx huggingface.co

xlm-roberta-base-language-detection-onnx huggingface.co is an AI model on huggingface.co that provides xlm-roberta-base-language-detection-onnx's model effect (), which can be used instantly with this protectai xlm-roberta-base-language-detection-onnx model. huggingface.co supports a free trial of the xlm-roberta-base-language-detection-onnx model, and also provides paid use of the xlm-roberta-base-language-detection-onnx. Support call xlm-roberta-base-language-detection-onnx model through api, including Node.js, Python, http.

xlm-roberta-base-language-detection-onnx huggingface.co Url

https://huggingface.co/protectai/xlm-roberta-base-language-detection-onnx

protectai xlm-roberta-base-language-detection-onnx online free

xlm-roberta-base-language-detection-onnx huggingface.co is an online trial and call api platform, which integrates xlm-roberta-base-language-detection-onnx's modeling effects, including api services, and provides a free online trial of xlm-roberta-base-language-detection-onnx, you can try xlm-roberta-base-language-detection-onnx online for free by clicking the link below.

protectai xlm-roberta-base-language-detection-onnx online free url in huggingface.co:

https://huggingface.co/protectai/xlm-roberta-base-language-detection-onnx

xlm-roberta-base-language-detection-onnx install

xlm-roberta-base-language-detection-onnx is an open source model from GitHub that offers a free installation service, and any user can find xlm-roberta-base-language-detection-onnx on GitHub to install. At the same time, huggingface.co provides the effect of xlm-roberta-base-language-detection-onnx install, users can directly use xlm-roberta-base-language-detection-onnx installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

xlm-roberta-base-language-detection-onnx install url in huggingface.co:

https://huggingface.co/protectai/xlm-roberta-base-language-detection-onnx

Url of xlm-roberta-base-language-detection-onnx

xlm-roberta-base-language-detection-onnx huggingface.co Url

Provider of xlm-roberta-base-language-detection-onnx huggingface.co

protectai
ORGANIZATIONS

Other API from protectai