mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-23 08:52:16 +00:00
change default sklearn models to new ones (#3777)
This commit is contained in:
parent
6c067b2b4f
commit
03619d2e00
@ -39,19 +39,19 @@ class SklearnQueryClassifier(BaseQueryClassifier):
|
||||
|
||||
Pass your own `Sklearn` binary classification model or use one of the following pretrained ones:
|
||||
1) Keywords vs. Questions/Statements (Default)
|
||||
query_classifier can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier/model.pickle)
|
||||
query_vectorizer can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier/vectorizer.pickle)
|
||||
query_classifier can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_2022/model.pickle)
|
||||
query_vectorizer can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_2022/vectorizer.pickle)
|
||||
output_1 => question/statement
|
||||
output_2 => keyword query
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier/readme.txt)
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_2022/readme.txt)
|
||||
|
||||
|
||||
2) Questions vs. Statements
|
||||
query_classifier can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements/model.pickle)
|
||||
query_vectorizer can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements/vectorizer.pickle)
|
||||
query_classifier can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements_2022/model.pickle)
|
||||
query_vectorizer can be found [here](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements_2022/vectorizer.pickle)
|
||||
output_1 => question
|
||||
output_2 => statement
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements/readme.txt)
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements_2022/readme.txt)
|
||||
|
||||
See also the [tutorial](https://haystack.deepset.ai/tutorials/pipelines) on pipelines.
|
||||
|
||||
@ -61,10 +61,10 @@ class SklearnQueryClassifier(BaseQueryClassifier):
|
||||
self,
|
||||
model_name_or_path: Union[
|
||||
str, Any
|
||||
] = "https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier/model.pickle",
|
||||
] = "https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_2022/model.pickle",
|
||||
vectorizer_name_or_path: Union[
|
||||
str, Any
|
||||
] = "https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier/vectorizer.pickle",
|
||||
] = "https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_2022/vectorizer.pickle",
|
||||
batch_size: Optional[int] = None,
|
||||
progress_bar: bool = True,
|
||||
):
|
||||
|
@ -47,14 +47,14 @@ class TransformersQueryClassifier(BaseQueryClassifier):
|
||||
model_name_or_path="shahrukhx01/bert-mini-finetune-question-detection"
|
||||
output_1 => question/statement
|
||||
output_2 => keyword query
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier/readme.txt)
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_2022/readme.txt)
|
||||
|
||||
|
||||
2) Questions vs. Statements
|
||||
`model_name_or_path`="shahrukhx01/question-vs-statement-classifier"
|
||||
output_1 => question
|
||||
output_2 => statement
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements/readme.txt)
|
||||
[Readme](https://ext-models-haystack.s3.eu-central-1.amazonaws.com/gradboost_query_classifier_statements_2022/readme.txt)
|
||||
|
||||
|
||||
See also the [tutorial](https://haystack.deepset.ai/tutorials/pipelines) on pipelines.
|
||||
|
Loading…
x
Reference in New Issue
Block a user