Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,40 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
-
classifier = pipeline("text-classification", model=hf_model )
|
| 8 |
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
query
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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}]
|