Update README.md
Browse files
README.md
CHANGED
@@ -5,29 +5,28 @@ widget:
|
|
5 |
- text: "Ninna Gay is an exceptional photographer who has been exhibiting her work since 1996 in Ireland, Northern Ireland, and France. She is a dominant figure in the world of photography, and her photographs are a testament to her outstanding talent and forceful personality."
|
6 |
---
|
7 |
|
8 |
-
#
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
-
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
### Model Description
|
19 |
-
|
20 |
-
<!-- Provide a longer summary of what this model is. -->
|
21 |
|
|
|
22 |
|
|
|
|
|
|
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
- **Model type:** [More Information Needed]
|
28 |
-
- **Language(s) (NLP):** [More Information Needed]
|
29 |
-
- **License:** [More Information Needed]
|
30 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
31 |
|
32 |
### Model Sources
|
33 |
|
@@ -37,16 +36,6 @@ The model was trained on the [Language Agency Classification Dataset](https://hu
|
|
37 |
- **Paper:** ["Kelly is a Warm Person, Joseph is a Role Model"](https://arxiv.org/pdf/2310.09219.pdf)
|
38 |
- **Demo:** [LLMReferenceLetterBias](https://huggingface.co/spaces/emmatliu/LLMReferenceLetterBias)
|
39 |
|
40 |
-
## Uses
|
41 |
-
|
42 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
43 |
-
|
44 |
-
## How to Get Started with the Model
|
45 |
-
|
46 |
-
Use the code below to get started with the model.
|
47 |
-
|
48 |
-
[More Information Needed]
|
49 |
-
|
50 |
## Citation
|
51 |
|
52 |
```
|
|
|
5 |
- text: "Ninna Gay is an exceptional photographer who has been exhibiting her work since 1996 in Ireland, Northern Ireland, and France. She is a dominant figure in the world of photography, and her photographs are a testament to her outstanding talent and forceful personality."
|
6 |
---
|
7 |
|
8 |
+
# Language Agency Classifier
|
9 |
|
10 |
+
The Language Agency Classifier was created by (Wan et al., 2023) and aims to classify sentences based on the level of agency expressed in each sentence.
|
11 |
+
Classifying sentence agency can help expose latent gender bias, where women may be
|
12 |
+
described with more communal (community-oriented) words and men may be described with more agentic (self/leadership-oriented) words.
|
13 |
|
14 |
+
The Language Agency Classifier is implemented with a BERT model architecture given an 80/10/10 train/dev/test split. We performed hyperparameter search
|
15 |
+
and ended up with a learning rate of 2e^-5, train for 10 epochs, and have a batch size of 16.
|
16 |
|
17 |
+
In the dataset ([Language Agency Classifier Dataset](https://huggingface.co/datasets/elaine1wan/Language-Agency-Classification)), the initial biography is
|
18 |
+
sampled from the Bias in Bios dataset (De-Arteaga et al., 2019a), which is sourced from online biographies in the Common Crawl corpus. We prompt ChatGPT
|
19 |
+
to rephrase the initial briography into two versions: one leaning towards agentic language style and another leaning towards communal language style.
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
An example usage is below.
|
22 |
|
23 |
+
```
|
24 |
+
# Load model directly
|
25 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
26 |
|
27 |
+
tokenizer = AutoTokenizer.from_pretrained("emmatliu/language-agency-classifier")
|
28 |
+
model = AutoModelForSequenceClassification.from_pretrained("emmatliu/language-agency-classifier")
|
29 |
+
```
|
|
|
|
|
|
|
|
|
30 |
|
31 |
### Model Sources
|
32 |
|
|
|
36 |
- **Paper:** ["Kelly is a Warm Person, Joseph is a Role Model"](https://arxiv.org/pdf/2310.09219.pdf)
|
37 |
- **Demo:** [LLMReferenceLetterBias](https://huggingface.co/spaces/emmatliu/LLMReferenceLetterBias)
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
## Citation
|
40 |
|
41 |
```
|