Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
yangao381 commited on
Commit
b3ec76c
·
verified ·
1 Parent(s): f6584ef

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-classification
4
+ language:
5
+ - en
6
+ tags:
7
+ - finance
8
+ pretty_name: FinGPT Sentiment Train
9
+ dataset_info:
10
+ features:
11
+ - name: input
12
+ dtype: string
13
+ - name: output
14
+ dtype: string
15
+ - name: instruction
16
+ dtype: string
17
+ splits:
18
+ - name: train
19
+ num_bytes: 18860715
20
+ num_examples: 76772
21
+ download_size: 6417302
22
+ dataset_size: 18860715
23
+ configs:
24
+ - config_name: default
25
+ data_files:
26
+ - split: train
27
+ path: data/train-*
28
+ ---
29
+ # Dataset Card for Dataset Name
30
+
31
+ This dataset originates from the [FinGPT repository](https://github.com/AI4Finance-Foundation/FinGPT).
32
+ The FinGPT Sentiment Train dataset is specifically used for financial sentiment analysis model training.
33
+
34
+ ## Dataset Details
35
+
36
+ ### Dataset Description
37
+
38
+ Each sample is comprised of three columns: instruction, input and output.
39
+
40
+ - **Language(s):** English
41
+
42
+ ### Dataset Sources
43
+
44
+ The code from the original repository was adopted to post it here.
45
+
46
+ - **Repository:** https://github.com/AI4Finance-Foundation/FinGPT
47
+
48
+ ## Uses
49
+
50
+ This dataset is primarily used for models training of financial sentiment analysis. It can also be utilized in Federated Learning settings by partitioning the data into multiple shards (e.g. [FlowerTune LLM Leaderboard](https://flower.ai/benchmarks/llm-leaderboard/)).
51
+
52
+
53
+ ### Direct Use in FL
54
+ This dataset can be used in FL settings. We recommend using [Flower Datasets](https://flower.ai/docs/datasets/) (flwr-datasets) and [Flower](https://flower.ai/docs/framework/) (flwr).
55
+
56
+ To partition the dataset, do the following.
57
+ 1. Install the package.
58
+ ```bash
59
+ pip install flwr-datasets
60
+ ```
61
+ 2. Use the HF Dataset under the hood in Flower Datasets.
62
+ ```python
63
+ from flwr_datasets import FederatedDataset
64
+ from flwr_datasets.partitioner import IidPartitioner
65
+ fds = FederatedDataset(
66
+ dataset="flwrlabs/fingpt-sentiment-train",
67
+ partitioners={"train": IidPartitioner(num_partitions=50)}
68
+ )
69
+ partition = fds.load_partition(partition_id=0)
70
+ ```
71
+
72
+ ## Dataset Structure
73
+
74
+ The dataset contains only train split. Each sample is comprised of columns:
75
+ * `instruction`: str - description of financial sentiment task the model should perform.
76
+ * `input`: str - text of financial news.
77
+ * `output`: str - answer of the financial sentiment analysis, e.g., negative/neutral/positive.
78
+
79
+ ## Dataset Creation
80
+
81
+ ### Curation Rationale
82
+
83
+ This dataset was created as a part of the [FinGPT repository](https://github.com/AI4Finance-Foundation/FinGPT).
84
+
85
+ #### Data Collection and Processing
86
+
87
+ For the preprocessing details, please refer to the source code.
88
+
89
+ ## Citation
90
+
91
+ When working on the this dataset, please cite the original paper. If you're using this dataset with Flower Datasets, you can cite Flower.
92
+
93
+ **BibTeX:**
94
+ ```
95
+ @article{yang2023fingpt,
96
+ title={FinGPT: Open-Source Financial Large Language Models},
97
+ author={Yang, Hongyang and Liu, Xiao-Yang and Wang, Christina Dan},
98
+ journal={FinLLM Symposium at IJCAI 2023},
99
+ year={2023}
100
+ }
101
+ ```
102
+ ```
103
+ @article{DBLP:journals/corr/abs-2007-14390,
104
+ author = {Daniel J. Beutel and
105
+ Taner Topal and
106
+ Akhil Mathur and
107
+ Xinchi Qiu and
108
+ Titouan Parcollet and
109
+ Nicholas D. Lane},
110
+ title = {Flower: {A} Friendly Federated Learning Research Framework},
111
+ journal = {CoRR},
112
+ volume = {abs/2007.14390},
113
+ year = {2020},
114
+ url = {https://arxiv.org/abs/2007.14390},
115
+ eprinttype = {arXiv},
116
+ eprint = {2007.14390},
117
+ timestamp = {Mon, 03 Aug 2020 14:32:13 +0200},
118
+ biburl = {https://dblp.org/rec/journals/corr/abs-2007-14390.bib},
119
+ bibsource = {dblp computer science bibliography, https://dblp.org}
120
+ }
121
+ ```
122
+
123
+ ## Dataset Card Contact
124
+
125
+ In case of any doubts, please contact [Flower Labs](https://flower.ai/).