tstadel commited on
Commit
adad652
1 Parent(s): 4760576

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +4 -5
  2. config.json +1 -1
  3. config_setfit.json +6 -1
README.md CHANGED
@@ -10,12 +10,11 @@ metrics:
10
  widget: []
11
  pipeline_tag: text-classification
12
  inference: true
13
- base_model: BAAI/bge-base-en-v1.5
14
  ---
15
 
16
- # SetFit with BAAI/bge-base-en-v1.5
17
 
18
- This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
19
 
20
  The model has been trained using an efficient few-shot learning technique that involves:
21
 
@@ -26,10 +25,10 @@ The model has been trained using an efficient few-shot learning technique that i
26
 
27
  ### Model Description
28
  - **Model Type:** SetFit
29
- - **Sentence Transformer body:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)
30
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
31
  - **Maximum Sequence Length:** 512 tokens
32
- <!-- - **Number of Classes:** Unknown -->
33
  <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
34
  <!-- - **Language:** Unknown -->
35
  <!-- - **License:** Unknown -->
 
10
  widget: []
11
  pipeline_tag: text-classification
12
  inference: true
 
13
  ---
14
 
15
+ # SetFit
16
 
17
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
18
 
19
  The model has been trained using an efficient few-shot learning technique that involves:
20
 
 
25
 
26
  ### Model Description
27
  - **Model Type:** SetFit
28
+ <!-- - **Sentence Transformer:** [Unknown](https://huggingface.co/unknown) -->
29
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
30
  - **Maximum Sequence Length:** 512 tokens
31
+ - **Number of Classes:** 4 classes
32
  <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
33
  <!-- - **Language:** Unknown -->
34
  <!-- - **License:** Unknown -->
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "models/setfit_bge-base-en-v1.5/",
3
  "architectures": [
4
  "BertModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "/home/tstad/.cache/torch/sentence_transformers/tstadel_answer-classification-setfit-v2/",
3
  "architectures": [
4
  "BertModel"
5
  ],
config_setfit.json CHANGED
@@ -1,4 +1,9 @@
1
  {
2
  "normalize_embeddings": false,
3
- "labels": null
 
 
 
 
 
4
  }
 
1
  {
2
  "normalize_embeddings": false,
3
+ "labels": [
4
+ "needs_verification",
5
+ "no_answer",
6
+ "needs_context",
7
+ "noise"
8
+ ]
9
  }