brunneis's picture
Create README.md
e1feac2 verified
metadata
language:
  - en
  - es
  - ko
  - zh
tags:
  - fastc
license: mit
base_model: deepset/tinyroberta-6l-768d

Install FastC

pip install fastc

Model Inference

from fastc import SentenceClassifier

classifier = SentenceClassifier('braindao/tinyroberta-6l-768d-language-identifier-infused-en-es-ko-zh-fastc')
scores = classifier.predict_one('How are you today?')
language = max(scores, key=scores.get)