Datasets:
|
Download README.md from TheFinAI/en-nwgi: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/datasets/TheFinAI/en-nwgi/resolve/main/README.md
- Command line
-
hf download hf://datasets/TheFinAI/en-nwgi/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/TheFinAI/en-nwgi/resolve/main/README.md
2 kB
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/train-* | |
| - split: valid | |
| path: data/valid-* | |
| - split: test | |
| path: data/test-* | |
| dataset_info: | |
| features: | |
| - name: id | |
| dtype: string | |
| - name: query | |
| dtype: string | |
| - name: answer | |
| dtype: string | |
| - name: choices | |
| sequence: string | |
| - name: gold | |
| dtype: int64 | |
| splits: | |
| - name: train | |
| num_bytes: 6885237 | |
| num_examples: 12947 | |
| - name: valid | |
| num_bytes: 1713486 | |
| num_examples: 3237 | |
| - name: test | |
| num_bytes: 2154392 | |
| num_examples: 4047 | |
| download_size: 2852286 | |
| dataset_size: 10753115 | |
| license: mit | |
| language: | |
| - en | |
| tags: | |
| - finance | |
| - thefinai | |
| extra_gated_heading: Request access to News sentiment (NWGI) | |
| extra_gated_description: News sentiment (NWGI) is released by The Fin AI for research. Access is granted automatically after you complete this short form. | |
| extra_gated_button_content: Agree and access | |
| extra_gated_prompt: By accessing this dataset you agree to its license and to cite the The Fin AI paper in any resulting publication. | |
| extra_gated_fields: | |
| Full name: text | |
| Affiliation: text | |
| Country: country | |
| Intended use: | |
| type: select | |
| options: | |
| - Research | |
| - Education | |
| - Commercial evaluation | |
| - Other | |
| I agree to the terms above and will cite the paper: checkbox | |
| # Dataset Card for "NWGI_test" | |
| 🌐 [The Fin AI](https://thefin.ai) | |
| ## Dataset Class: | |
| ``` python | |
| class NWGI(InstructionDataset): | |
| dataset = "NWGI" | |
| task_type = "classification" | |
| choices = [ | |
| 'strong negative', 'moderately negative', 'mildly negative', 'neutral', | |
| 'mildly positive', 'moderately positive', 'strong positive', | |
| ] | |
| prompt = '''What is the sentiment of this news? | |
| {input} | |
| Please choose an answer from {{strong negative/moderately negative/mildly negative/neutral/mildly positive/moderately positive/strong positive}}.''' | |
| def fetch_data(self, datum): | |
| return {'input': datum['input'], 'answer': datum['answer']} | |
| ``` |