Transformers
fastc
Inference Endpoints
brunneis's picture
Update README.md
ab305f4 verified
metadata
language:
  - ar
  - bg
  - de
  - el
  - en
  - es
  - fr
  - hi
  - it
  - ja
  - nl
  - pl
  - pt
  - ru
  - sw
  - th
  - tr
  - ur
  - vi
  - zh
tags:
  - fastc
license: mit
datasets:
  - papluca/language-identification
base_model: intfloat/multilingual-e5-large-instruct

Install FastC

pip install fastc

Model Inference

from fastc import SentenceClassifier

classifier = SentenceClassifier('braindao/e5-large-instruct-language-identifier-infused-papluca-fastc')
scores = classifier.predict_one('How are you today?')
language = max(scores, key=scores.get)