vdmbrsv commited on
Commit
f0d6083
·
verified ·
1 Parent(s): 62d750c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -0
README.md CHANGED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - answerdotai/ModernBERT-base
7
+ pipeline_tag: text-classification
8
+ tags:
9
+ - synthetic data
10
+ ---
11
+
12
+
13
+ ```python
14
+ from transformers import pipeline
15
+
16
+ # Load model
17
+ classifier = pipeline('text-classification', model='tabularisai/ModernFinBERT')
18
+
19
+ # Test sentences
20
+ sentences = [
21
+ "The company reported strong quarterly earnings with revenue growth of 15% year-over-year, exceeding analyst expectations.",
22
+ "Due to rising inflation and supply chain disruptions, the Federal Reserve decided to increase interest rates by 0.75 basis points.",
23
+ "The merger between the two pharmaceutical giants is expected to create significant synergies and reduce operational costs by $2 billion annually."
24
+ ]
25
+
26
+ # Evaluate
27
+ for i, sentence in enumerate(sentences, 1):
28
+ result = classifier(sentence)
29
+ print(f"Sentence {i}: {result[0]['label']} ({result[0]['score']:.3f})")
30
+ ```