Commit
·
c7a042d
1
Parent(s):
525427c
Update README.md
Browse files
README.md
CHANGED
|
@@ -1 +1,24 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: "en"
|
| 3 |
+
tags:
|
| 4 |
+
- neural-search-query-classification
|
| 5 |
+
- neural-search
|
| 6 |
+
widget:
|
| 7 |
+
- text: "what did you eat in lunch?"
|
| 8 |
+
---
|
| 9 |
+
# KEYWORD STATEMENT VS QUESTION CLASSIFIER FOR NEURAL SEARCH
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
```python
|
| 13 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 14 |
+
|
| 15 |
+
tokenizer = AutoTokenizer.from_pretrained("shahrukhx01/bert-mini-finetune-question-detection")
|
| 16 |
+
|
| 17 |
+
model = AutoModelForSequenceClassification.from_pretrained("shahrukhx01/bert-mini-finetune-question-detection")
|
| 18 |
+
```
|
| 19 |
+
Trained to add the feature for classifying queries between Question Question vs Statement Query using classification in [Haystack](https://github.com/deepset-ai/haystack/issues/611)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|