Downloads · 30 days
5
19% of all-time downloads
ak837/t5-financial-metrics-extractor
t5-financial-metrics-extractor is a machine learning model from ak837. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model extracts financial metrics from natural language queries.
Downloads · 30 days
5
19% of all-time downloads
All-time downloads
27
Public
Parameters
223M
892 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors892 MB · 100%
From the Hugging Face model README
This model extracts financial metrics from natural language queries.
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"]
This model was fine-tuned on financial queries to extract relevant metrics in JSON array format.
The model can extract various financial metrics including:
Always use the prefix "extract metrics: " before your query for best results.