T5 Financial Metrics Extractor

This model extracts financial metrics from natural language queries.

Usage

from transformers import pipeline

pipe = pipeline("text2text-generation", model="ak837/t5-financial-metrics-extractor")

# Important: Always prefix with "extract metrics: "
result = pipe("extract metrics: Show me Apple's revenue and gross margin")
print(result[0]['generated_text'])
# Output: ["revenue", "grossMargin"]

Training

This model was fine-tuned on financial queries to extract relevant metrics in JSON array format.

Metrics Supported

The model can extract various financial metrics including:

  • Revenue, gross profit, net income
  • Margins (gross, operating, net)
  • Cash flow metrics
  • Balance sheet items
  • Financial ratios
  • Growth rates

Note

Always use the prefix "extract metrics: " before your query for best results.

Downloads last month
-
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support