Files changed (1) hide show
  1. README.md +60 -19
README.md CHANGED
@@ -1,9 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Op-Fed
2
 
3
- This repository hosts the code and data to support the paper [Op-Fed: Opinion, Stance, and Monetary Policy
4
- Annotations on FOMC Transcripts Using Active Learning](https://arxiv.org/abs/2509.13539) by Alisa Kanganis and Katherine A. Keith.
5
 
6
- If you use this data or code, please cite our paper:
7
  ```
8
  @inproceedings{kanganis2026,
9
  author = {Kanganis, Alisa and Keith, Katherine A.},
@@ -19,28 +42,46 @@ Code to replicate the paper is in [this Github repo](https://github.com/kakeith/
19
 
20
  ## Data
21
 
22
- The main dataset is in `data/opfed_v1.csv` and we also provide the raw annotations for all three annotators in `data/opfed_raw_v1.csv`.
 
 
23
 
24
- Please see `Section B: Datasheets for Datasets` in our paper for a detailed description of this dataset.
 
 
 
 
 
 
25
 
26
- ### `data/opfed_v1.csv`
27
 
28
- Columns:
29
- - `unique_id`: Example `19811222_189_9`. The first two numbers, e.g.,`19811222_189`, correspond to the `id` in ConvoKit. In ConvoKit, this is the transcript number, e.g., `19811222`, followed by the utterance number, e.g., `189` (starting at index 1). In our `unique_id`, the third number, e.g., `_9` corresponds to the sentence number (after sentence segmentation with spacy); this starts at index 1 for the first sentence.
30
  - `speaker`: The name of the speaker, e.g., `MR. TRUMAN`
31
- - `sentence`: The full text of the target sentence.
 
 
 
 
32
  - `1_opinion`: Opinion label on the target sentence. Possible labels: `yes`, `no`, or `ambiguous`
33
  - `2_mp`: Monetary policy label on the target sentence. Possible labels: `yes`, `no`, or `ambiguous`
34
- - `3_mp_context`: Whether the `2_mp` label needed additional context. Possible labels: `sentence`, `utterance`, `-5 sentences`, or `200+ tokens`
35
- - `4_stance`: StanceNLI labels on the target sentence. Possible labels: `neutral`, `entailment`, `contradiction` or `ambiguous`
36
- - `5_stance_context`: Whether the `4_stance` label needed additional context. Possible labels: `sentence`, `utterance`, `-5 sentences`, or `200+ tokens`
37
- - `utterance`: The full utterance within which the target sentence exists.
38
- - `-5 sentences`: The previous five sentences leading up to (but not including) the utterance of the target sentence. When this is across multiple utterances, we return a list of dictionaries. Each dictionary is an utterance with keys for the `'speaker'` and the `'text'` for the utterance. Example:
39
- - `[{'speaker': 'MR. LAWARE.', 'text': 'With the momentum that he will gain by our acquiescence to [releasing the transcripts], he will then say: Well, this is what I want you to decide to do.'}, {'speaker': 'MR. ANGELL.', 'text': 'Absolutely.'}, {'speaker': 'MR. LAWARE.', 'text': ""He's going to back us right into a corner.""}, ... ]`
40
- - `-200+ tokens`: The previous 200 tokens (rounded to the nearest sentence) leading up to (but not including) the utterance with the target sentence. If this is across utterances, we use the same list-dictionary format as `-5 sentences`.
41
 
42
- ### `data/opfed_raw_v1.csv`
43
 
44
- In this folder, we also provide `opfed_raw_v1.csv` which contains the per-annotator labels combined into list form (prior to aggregation). For example, in the first row, `1_opinion` column, the cell value is `['yes', 'yes', 'yes']` which means all three annotators labeled the target sentence as `'yes'` for the opinion aspect.
45
 
46
- Because this is a hierarchical schema, one could also have missing values for some of the annotators, e.g., `['yes', 'nan', 'yes']` meaning the second annotator (`'nan'` value) did not reach that annotation stage due to earlier annotation decisions.
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Op-Fed
6
+ size_categories:
7
+ - 1K<n<10K
8
+ tags:
9
+ - finance
10
+ - monetary-policy
11
+ - fomc
12
+ - opinion-mining
13
+ - stance-detection
14
+ - active-learning
15
+ task_categories:
16
+ - text-classification
17
+ configs:
18
+ - config_name: aggregated
19
+ data_files: opfed_v1.csv
20
+ default: true
21
+ - config_name: raw
22
+ data_files: opfed_raw_v1.csv
23
+ ---
24
+
25
  # Op-Fed
26
 
27
+ This repository hosts the code and data to support the paper [Op-Fed: Opinion, Stance, and Monetary Policy Annotations on FOMC Transcripts Using Active Learning](https://arxiv.org/abs/2509.13539) by Alisa Kanganis and Katherine A. Keith.
 
28
 
29
+ If you use this data or code, please cite our paper:
30
  ```
31
  @inproceedings{kanganis2026,
32
  author = {Kanganis, Alisa and Keith, Katherine A.},
 
42
 
43
  ## Data
44
 
45
+ The main dataset is in `opfed_v1.csv` (config `aggregated`) and we also provide the raw annotations for all three annotators in `opfed_raw_v1.csv` (config `raw`).
46
+
47
+ Please see `Section B: Datasheets for Datasets` in our paper for a detailed description of this dataset.
48
 
49
+ To load each subset:
50
+
51
+ ```python
52
+ from datasets import load_dataset
53
+ aggregated = load_dataset("kakeith406/op-fed", "aggregated")
54
+ raw = load_dataset("kakeith406/op-fed", "raw")
55
+ ```
56
 
57
+ ### `opfed_v1.csv`
58
 
59
+ Columns:
60
+ - `unique_id`: Example `19811222_189_9`. The first two numbers, e.g.,`19811222_189`, correspond to the `id` in ConvoKit. In ConvoKit, this is the transcript number, e.g., `19811222`, followed by the utterance number, e.g., `189` (starting at index 1). In our `unique_id`, the third number, e.g., `_9` corresponds to the sentence number (after sentence segmentation with spacy); this starts at index 1 for the first sentence.
61
  - `speaker`: The name of the speaker, e.g., `MR. TRUMAN`
62
+ - `sentence`: The full text of the target sentence.
63
+ - `utterance`: The full utterance within which the target sentence exists.
64
+ - `-5 sentences`: The previous five sentences leading up to (but not including) the utterance of the target sentence. When this is across multiple utterances, we return a list of dictionaries. Each dictionary is an utterance with keys for the `'speaker'` and the `'text'` for the utterance. Example:
65
+ - `[{'speaker': 'MR. LAWARE.', 'text': 'With the momentum that he will gain by our acquiescence to [releasing the transcripts], he will then say: Well, this is what I want you to decide to do.'}, {'speaker': 'MR. ANGELL.', 'text': 'Absolutely.'}, {'speaker': 'MR. LAWARE.', 'text': ""He's going to back us right into a corner.""}, ... ]`
66
+ - `-200+ tokens`: The previous 200 tokens (rounded up to the nearest sentence) leading up to (but not including) the utterance with the target sentence. If this is across utterances, we use the same list-dictionary format as `-5 sentences`.
67
  - `1_opinion`: Opinion label on the target sentence. Possible labels: `yes`, `no`, or `ambiguous`
68
  - `2_mp`: Monetary policy label on the target sentence. Possible labels: `yes`, `no`, or `ambiguous`
69
+ - `3_mp_context`: Whether the `2_mp` label needed additional context. Possible labels: `sentence`, `utterance`, `-5 sentences`, or `-200+ tokens`
70
+ - `4_stance_nli`: StanceNLI labels on the target sentence. Possible labels: `neutral`, `entailment`, `contradiction` or `ambiguous`
71
+ - `5_stance_nli_context`: Whether the `4_stance_nli` label needed additional context. Possible labels: `sentence`, `utterance`, `-5 sentences`, or `-200+ tokens`
72
+
73
+
74
+ ### `opfed_raw_v1.csv`
 
75
 
76
+ This file contains the per-annotator labels combined into list form, prior to aggregation. This file contains the per-annotator labels for all three annotators in list form, prior to aggregation. Each label cell contains a stringified Python list of three values, one per annotator. For example, in the first row, `1_opinion` column, the cell value is `['yes', 'yes', 'yes']` which means all three annotators labeled the target sentence as `'yes'` for the opinion aspect.
77
 
78
+ Because this is a hierarchical schema, one could also have missing values for some of the annotators, e.g., `['yes', 'nan', 'yes']` meaning the second annotator (`'nan'` value) did not reach that annotation stage due to earlier annotation decisions.
79
 
80
+ Columns:
81
+ - `unique_id`: Same format as in `opfed_v1.csv`.
82
+ - `sentence`: The full text of the target sentence.
83
+ - `1_opinion`: Per-annotator opinion labels. List of three values, each `yes`, `no`, `ambiguous`, or `nan`.
84
+ - `2_mp`: Per-annotator monetary policy labels. List of three values, each `yes`, `no`, `ambiguous`, or `nan`.
85
+ - `3_mp_context`: Per-annotator context needed for `2_mp`. List of three values, each `sentence`, `utterance`, `-5 sentences`, `-200+ tokens`, or `nan`.
86
+ - `4_stance_nli`: Per-annotator StanceNLI labels. List of three values, each `neutral`, `entailment`, `contradiction`, `ambiguous`, or `nan`.
87
+ - `5_stance_nli_context`: Per-annotator context needed for `4_stance_nli`. List of three values, each `sentence`, `utterance`, `-5 sentences`, `-200+ tokens`, or `nan`.