ProsusAI/finbert cover image

ProsusAI/finbert

FinBERT is a pre-trained NLP model for financial sentiment analysis, built by fine-tuning the BERT language model on a large financial corpus. The model provides softmax outputs for three labels: positive, negative, or neutral.

FinBERT is a pre-trained NLP model for financial sentiment analysis, built by fine-tuning the BERT language model on a large financial corpus. The model provides softmax outputs for three labels: positive, negative, or neutral.

Public
$0.0005 / sec

HTTP/cURL API

You can use cURL or any other http client to run inferences:

curl -X POST \
    -d '{"input": "I had a wonderful day!"}'  \
    -H "Authorization: bearer $DEEPINFRA_TOKEN"  \
    -H 'Content-Type: application/json'  \
    'https://api.deepinfra.com/v1/inference/ProsusAI/finbert'

which will give you back something similar to:

{
  "results": [
    {
      "label": "POSITIVE",
      "score": 0.9998832941055298
    },
    {
      "label": "NEGATIVE",
      "score": 0.00011671594256768003
    }
  ],
  "request_id": null,
  "inference_status": {
    "status": "unknown",
    "runtime_ms": 0,
    "cost": 0.0,
    "tokens_generated": 0,
    "tokens_input": 0
  }
}

Input fields

inputstring

text to classify


webhookfile

The webhook to call when inference is done, by default you will get the output in the response of your inference request

Input Schema

Output Schema