bilalzafar commited on
Commit
6e536c6
·
verified ·
1 Parent(s): 363c2fb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -4
README.md CHANGED
@@ -102,12 +102,17 @@ classifier = pipeline("text-classification", model="bilalzafar/CBDC-Discourse")
102
 
103
  # Example sentences
104
  sentences = [
105
- "The central bank launched a pilot project for CBDC cross-border settlement.",
106
- "Programmability in CBDC allows conditional payments.",
107
- "CBDC may increase risks of bank disintermediation."
108
  ]
109
 
110
  # Predict
111
  for s in sentences:
112
  result = classifier(s, return_all_scores=False)[0]
113
- print(f"{s}\n → {result['label']} (score={result['score']:.4f})\n")
 
 
 
 
 
 
102
 
103
  # Example sentences
104
  sentences = [
105
+ "The central bank launched a pilot project for CBDC cross-border settlement.", # Process
106
+ "Programmability in CBDC allows conditional payments.", # Feature
107
+ "CBDC may increase risks of bank disintermediation." # Risk-Benefit
108
  ]
109
 
110
  # Predict
111
  for s in sentences:
112
  result = classifier(s, return_all_scores=False)[0]
113
+ print(f"{s}\n → {result['label']} (score={result['score']:.4f})\n")
114
+
115
+ # Example output
116
+ # [{The central bank launched a pilot project for CBDC cross-border settlement. → Process (score=0.9989)}]
117
+ # [{Programmability in CBDC allows conditional payments. → Feature (score=0.9991)}]
118
+ # [{CBDC may increase risks of bank disintermediation. → Risk-Benefit (score=0.9986)}]