mbrede commited on
Commit
738833d
·
verified ·
1 Parent(s): 96e5eae

Push model using huggingface_hub.

Browse files
Files changed (4) hide show
  1. README.md +10 -12
  2. config.json +1 -1
  3. config_setfit.json +4 -4
  4. model_head.pkl +1 -1
README.md CHANGED
@@ -1,23 +1,21 @@
1
  ---
2
- language: multilingual
3
  library_name: setfit
4
- license: mit
5
  metrics:
6
- - f1
7
  pipeline_tag: text-classification
8
  tags:
9
  - setfit
10
  - sentence-transformers
11
  - text-classification
 
12
  widget: []
13
  inference: true
14
- base_model:
15
- - intfloat/multilingual-e5-large
16
  ---
17
 
18
- # SetFit
19
 
20
- This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. A OneVsRestClassifier instance is used for classification.
21
 
22
  The model has been trained using an efficient few-shot learning technique that involves:
23
 
@@ -28,13 +26,13 @@ The model has been trained using an efficient few-shot learning technique that i
28
 
29
  ### Model Description
30
  - **Model Type:** SetFit
31
- <!-- - **Sentence Transformer:** [Unknown](https://huggingface.co/unknown) -->
32
  - **Classification head:** a OneVsRestClassifier instance
33
  - **Maximum Sequence Length:** 512 tokens
34
  - **Number of Classes:** 4 classes
35
- - **Training Dataset:** [A database of coded PSE-text published by Schönbrodt et al. (2021)](http://dx.doi.org/10.23668/psycharchives.2738)
36
- - **Language:** multilingual
37
- - **License:** mit
38
 
39
  ### Model Sources
40
 
@@ -58,7 +56,7 @@ Then you can load this model and run inference.
58
  from setfit import SetFitModel
59
 
60
  # Download from the 🤗 Hub
61
- model = SetFitModel.from_pretrained("mbrede/amc_setfit")
62
  # Run inference
63
  preds = model("I loved the spiderman movie!")
64
  ```
 
1
  ---
2
+ base_model: mbrede/amc_setfit
3
  library_name: setfit
 
4
  metrics:
5
+ - accuracy
6
  pipeline_tag: text-classification
7
  tags:
8
  - setfit
9
  - sentence-transformers
10
  - text-classification
11
+ - generated_from_setfit_trainer
12
  widget: []
13
  inference: true
 
 
14
  ---
15
 
16
+ # SetFit with mbrede/amc_setfit
17
 
18
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [mbrede/amc_setfit](https://huggingface.co/mbrede/amc_setfit) as the Sentence Transformer embedding model. A OneVsRestClassifier instance is used for classification.
19
 
20
  The model has been trained using an efficient few-shot learning technique that involves:
21
 
 
26
 
27
  ### Model Description
28
  - **Model Type:** SetFit
29
+ - **Sentence Transformer body:** [mbrede/amc_setfit](https://huggingface.co/mbrede/amc_setfit)
30
  - **Classification head:** a OneVsRestClassifier instance
31
  - **Maximum Sequence Length:** 512 tokens
32
  - **Number of Classes:** 4 classes
33
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
34
+ <!-- - **Language:** Unknown -->
35
+ <!-- - **License:** Unknown -->
36
 
37
  ### Model Sources
38
 
 
56
  from setfit import SetFitModel
57
 
58
  # Download from the 🤗 Hub
59
+ model = SetFitModel.from_pretrained("automatedMotiveCoder/setfit")
60
  # Run inference
61
  preds = model("I loved the spiderman movie!")
62
  ```
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "mbrede/amc_setfit",
3
  "architectures": [
4
  "XLMRobertaModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "automatedMotiveCoder/setfit",
3
  "architectures": [
4
  "XLMRobertaModel"
5
  ],
config_setfit.json CHANGED
@@ -1,9 +1,9 @@
1
  {
 
2
  "labels": [
3
  "ach",
4
  "aff",
5
- "null",
6
- "pow"
7
- ],
8
- "normalize_embeddings": false
9
  }
 
1
  {
2
+ "normalize_embeddings": false,
3
  "labels": [
4
  "ach",
5
  "aff",
6
+ "pow",
7
+ "null"
8
+ ]
 
9
  }
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a694fa966c23ebc1e5a721090a95f74ad61836c81f0feed10b14610b20ed26aa
3
  size 35762
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13e406ef1f1d9816c37240c218b0096fbca62a3b2610bb1ac85cc701954d8519
3
  size 35762