pankaj1881 commited on
Commit
8e6681f
·
verified ·
1 Parent(s): c7d009c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -11
README.md CHANGED
@@ -1,19 +1,40 @@
1
- ## How to use?
2
- ### Specifically finetuned for bank queries , to understand weather user want to to trasaction or not.
 
 
 
 
 
 
 
 
 
3
 
4
- hf_model = "pankaj1881/question-classification"
5
 
6
- #### question classification pipeline
7
- classifier = pipeline("text-classification", model=hf_model )
8
 
 
9
 
10
- #### prediction
11
- query = " your question or statement"
 
12
 
13
- result = classifier(query) # return "True" if query === question , else "False" # return "True" if query === question , else "False"
14
 
15
- print(result)
 
 
 
 
 
16
 
 
 
 
17
 
18
- ## output
19
- ### [{'label': 'True', 'score': 0.8767889142036438}]
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags:
5
+ - text-classification
6
+ - banking
7
+ - intent-detection
8
+ - transformers
9
+ library_name: transformers
10
+ pipeline_tag: text-classification
11
+ ---
12
 
13
+ # Question Classification Model for Bank Queries
14
 
15
+ This model is fine-tuned specifically for banking-related queries to classify whether a user intends to perform a **transaction** or not.
 
16
 
17
+ ## 🧠 Use Case
18
 
19
+ Given a text input (a user question or statement), the model returns:
20
+ - `"True"`: if the query is a **transaction-related question**
21
+ - `"False"`: otherwise
22
 
23
+ ---
24
 
25
+ ## 🔧 How to Use
26
+
27
+ You can use this model directly with the Hugging Face `transformers` pipeline:
28
+
29
+ ```python
30
+ from transformers import pipeline
31
 
32
+ hf_model = "pankaj1881/question-classification"
33
+
34
+ classifier = pipeline("text-classification", model=hf_model)
35
 
36
+ query = "I want to transfer 500 dollars to my friend"
37
+ result = classifier(query)
38
+
39
+ print(result)
40
+ # Output example: [{'label': 'True', 'score': 0.8767889142036438}]