Datasets:
Tasks:
Text Retrieval
Sub-tasks:
fact-checking-retrieval
Languages:
English
Size:
10K<n<100K
ArXiv:
License:
hover-nlp/hover@c0e430527598 を複製し、カードを日本語で書く
Browse files- .gitattributes +2 -35
- README.md +360 -0
- hover.py +111 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,27 @@
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.
|
| 38 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
# Audio files - uncompressed
|
| 40 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
-
# Audio files - compressed
|
| 44 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
-
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
-
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
-
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
# Video files - compressed
|
| 59 |
-
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
| 11 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 13 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 17 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 20 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 22 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 23 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 24 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license:
|
| 3 |
+
- cc-by-sa-4.0
|
| 4 |
+
pretty_name: hover-nlp/hover (mirror)
|
| 5 |
+
source_datasets:
|
| 6 |
+
- hover-nlp/hover
|
| 7 |
+
tags:
|
| 8 |
+
- laya
|
| 9 |
+
- laya-finetune
|
| 10 |
+
- mirror
|
| 11 |
+
language:
|
| 12 |
+
- en
|
| 13 |
+
task_categories:
|
| 14 |
+
- text-retrieval
|
| 15 |
+
task_ids:
|
| 16 |
+
- fact-checking-retrieval
|
| 17 |
+
size_categories:
|
| 18 |
+
- 10K<n<100K
|
| 19 |
+
dataset_info:
|
| 20 |
+
features:
|
| 21 |
+
- name: id
|
| 22 |
+
dtype: int32
|
| 23 |
+
- name: uid
|
| 24 |
+
dtype: string
|
| 25 |
+
- name: claim
|
| 26 |
+
dtype: string
|
| 27 |
+
- name: supporting_facts
|
| 28 |
+
list:
|
| 29 |
+
- name: key
|
| 30 |
+
dtype: string
|
| 31 |
+
- name: value
|
| 32 |
+
dtype: int32
|
| 33 |
+
- name: label
|
| 34 |
+
dtype:
|
| 35 |
+
class_label:
|
| 36 |
+
names:
|
| 37 |
+
'0': NOT_SUPPORTED
|
| 38 |
+
'1': SUPPORTED
|
| 39 |
+
- name: num_hops
|
| 40 |
+
dtype: int32
|
| 41 |
+
- name: hpqa_id
|
| 42 |
+
dtype: string
|
| 43 |
+
splits:
|
| 44 |
+
- name: train
|
| 45 |
+
num_bytes: 5532178
|
| 46 |
+
num_examples: 18171
|
| 47 |
+
- name: validation
|
| 48 |
+
num_bytes: 1299252
|
| 49 |
+
num_examples: 4000
|
| 50 |
+
- name: test
|
| 51 |
+
num_bytes: 927513
|
| 52 |
+
num_examples: 4000
|
| 53 |
+
download_size: 12257835
|
| 54 |
+
dataset_size: 7758943
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
# hover-nlp/hover(複製)
|
| 58 |
+
|
| 59 |
+
[`hover-nlp/hover`](https://huggingface.co/datasets/hover-nlp/hover) をリビジョン `c0e43052759879b3461642ca6c0dd26658f47691` の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(`convaiinnovations/laya`)の微調整に使う候補として、調査メモ(`Laya 学習用データセット調査`)に載せたデータを集めている。
|
| 60 |
+
|
| 61 |
+
## 出典
|
| 62 |
+
|
| 63 |
+
- 元のデータセット: https://huggingface.co/datasets/hover-nlp/hover
|
| 64 |
+
- 複製したリビジョン: `c0e43052759879b3461642ca6c0dd26658f47691`(2024-01-18 11:05:51+00:00)
|
| 65 |
+
- 元のライセンス表記: `['cc-by-sa-4.0']`
|
| 66 |
+
|
| 67 |
+
## 論文
|
| 68 |
+
|
| 69 |
+
- https://arxiv.org/abs/2011.03088
|
| 70 |
+
|
| 71 |
+
## アノテーションの方法
|
| 72 |
+
|
| 73 |
+
元のカードにアノテーションの節はあるが、中身は空欄(More Information Needed)だった。
|
| 74 |
+
|
| 75 |
+
## 微調整に使うときの注意
|
| 76 |
+
|
| 77 |
+
- 調査メモの台帳での区分: B(継承条件・gated・モデル由来の条件・上流の規約などが付く)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
|
| 78 |
+
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
|
| 79 |
+
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。
|
| 80 |
+
|
| 81 |
+
## 調査メモの記述
|
| 82 |
+
|
| 83 |
+
| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|
| 84 |
+
|---|---|---|---|---|
|
| 85 |
+
| `general_english_nlu.md` | 2. NLI・言い換え・事実検証・スタンス(noul / 3 択 choice) (L130) | cc-by-sa-4.0 | 確認済 | 原文注記: - hover-nlp/hover: arXiv 2011.03088(タグ)。train 18,171 / val 4,000 / test 4,000(test ラベルは非公開と理解)。ラベル NOT_SUPPORT |
|
| 86 |
+
|
| 87 |
+
## 元のカード(日本語訳)
|
| 88 |
+
|
| 89 |
+
以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
# データセットカード: HoVer
|
| 94 |
+
|
| 95 |
+
## 目次
|
| 96 |
+
- データセットの説明
|
| 97 |
+
- データセットの概要
|
| 98 |
+
- 対応するタスクとリーダーボード
|
| 99 |
+
- 言語
|
| 100 |
+
- データセットの構造
|
| 101 |
+
- データのインスタンス
|
| 102 |
+
- データのフィールド
|
| 103 |
+
- データの Splits
|
| 104 |
+
- データセットの作成
|
| 105 |
+
- 整備の根拠
|
| 106 |
+
- 元データ
|
| 107 |
+
- アノテーション
|
| 108 |
+
- 個人情報と機微な情報
|
| 109 |
+
- データを使う際の考慮事項
|
| 110 |
+
- データセットの社会的影響
|
| 111 |
+
- バイアスについての議論
|
| 112 |
+
- その他の既知の制限
|
| 113 |
+
- 追加情報
|
| 114 |
+
- データセットの整備者
|
| 115 |
+
- ライセンス情報
|
| 116 |
+
- 引用情報
|
| 117 |
+
- 貢献
|
| 118 |
+
|
| 119 |
+
## データセットの説明
|
| 120 |
+
|
| 121 |
+
- **ホームページ:** https://hover-nlp.github.io/
|
| 122 |
+
- **リポジトリ:** https://github.com/hover-nlp/hover
|
| 123 |
+
- **論文:** https://arxiv.org/abs/2011.03088
|
| 124 |
+
- **リーダーボード:** https://hover-nlp.github.io/
|
| 125 |
+
- **連絡先:** [More Information Needed]
|
| 126 |
+
|
| 127 |
+
### データセットの概要
|
| 128 |
+
|
| 129 |
+
[More Information Needed]
|
| 130 |
+
|
| 131 |
+
### 対応するタスクとリーダーボード
|
| 132 |
+
|
| 133 |
+
[More Information Needed]
|
| 134 |
+
|
| 135 |
+
### 言語
|
| 136 |
+
|
| 137 |
+
[More Information Needed]
|
| 138 |
+
|
| 139 |
+
## データセットの構造
|
| 140 |
+
|
| 141 |
+
### データのインスタンス
|
| 142 |
+
|
| 143 |
+
学習用データの例を以下に示す。
|
| 144 |
+
|
| 145 |
+
```
|
| 146 |
+
{'id': 14856, 'uid': 'a0cf45ea-b5cd-4c4e-9ffa-73b39ebd78ce', 'claim': 'The park at which Tivolis Koncertsal is located opened on 15 August 1843.', 'supporting_facts': [{'key': 'Tivolis Koncertsal', 'value': 0}, {'key': 'Tivoli Gardens', 'value': 1}], 'label': 'SUPPORTED', 'num_hops': 2, 'hpqa_id': '5abca1a55542993a06baf937'}
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
test set では、文に対して利用できるのは id、uid、claim だけである。test set のラベルは利用できず、-1 で表される。
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
### データのフィールド
|
| 153 |
+
|
| 154 |
+
[More Information Needed]
|
| 155 |
+
|
| 156 |
+
### データの Splits
|
| 157 |
+
|
| 158 |
+
[More Information Needed]
|
| 159 |
+
|
| 160 |
+
## データセットの作成
|
| 161 |
+
|
| 162 |
+
### 整備の根拠
|
| 163 |
+
|
| 164 |
+
[More Information Needed]
|
| 165 |
+
|
| 166 |
+
### 元データ
|
| 167 |
+
|
| 168 |
+
[More Information Needed]
|
| 169 |
+
|
| 170 |
+
#### 初期のデータ収集と正規化
|
| 171 |
+
|
| 172 |
+
[More Information Needed]
|
| 173 |
+
|
| 174 |
+
#### 元の言語の生産者は誰か?
|
| 175 |
+
|
| 176 |
+
[More Information Needed]
|
| 177 |
+
|
| 178 |
+
### アノテーション
|
| 179 |
+
|
| 180 |
+
[More Information Needed]
|
| 181 |
+
|
| 182 |
+
#### アノテーションの過程
|
| 183 |
+
|
| 184 |
+
[More Information Needed]
|
| 185 |
+
|
| 186 |
+
#### アノテーターは誰か?
|
| 187 |
+
|
| 188 |
+
[More Information Needed]
|
| 189 |
+
|
| 190 |
+
### 個人情報と機微な情報
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## データを使う際の考慮事項
|
| 195 |
+
|
| 196 |
+
### データセットの社会的影響
|
| 197 |
+
|
| 198 |
+
[More Information Needed]
|
| 199 |
+
|
| 200 |
+
### バイアスについての議論
|
| 201 |
+
|
| 202 |
+
[More Information Needed]
|
| 203 |
+
|
| 204 |
+
### その他の既知の制限
|
| 205 |
+
|
| 206 |
+
[More Information Needed]
|
| 207 |
+
|
| 208 |
+
## 追加情報
|
| 209 |
+
|
| 210 |
+
### データセットの整備者
|
| 211 |
+
|
| 212 |
+
[More Information Needed]
|
| 213 |
+
|
| 214 |
+
### ライセンス情報
|
| 215 |
+
|
| 216 |
+
[More Information Needed]
|
| 217 |
+
|
| 218 |
+
### 引用情報
|
| 219 |
+
|
| 220 |
+
[More Information Needed]
|
| 221 |
+
### 貢献
|
| 222 |
+
|
| 223 |
+
このデータセットを追加してくれた [@abhishekkrthakur](https://github.com/abhishekkrthakur) に感謝する。
|
| 224 |
+
|
| 225 |
+
<details>
|
| 226 |
+
<summary>原文(英語)</summary>
|
| 227 |
+
|
| 228 |
+
# Dataset Card for HoVer
|
| 229 |
+
|
| 230 |
+
## Table of Contents
|
| 231 |
+
- [Dataset Description](#dataset-description)
|
| 232 |
+
- [Dataset Summary](#dataset-summary)
|
| 233 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
| 234 |
+
- [Languages](#languages)
|
| 235 |
+
- [Dataset Structure](#dataset-structure)
|
| 236 |
+
- [Data Instances](#data-instances)
|
| 237 |
+
- [Data Fields](#data-fields)
|
| 238 |
+
- [Data Splits](#data-splits)
|
| 239 |
+
- [Dataset Creation](#dataset-creation)
|
| 240 |
+
- [Curation Rationale](#curation-rationale)
|
| 241 |
+
- [Source Data](#source-data)
|
| 242 |
+
- [Annotations](#annotations)
|
| 243 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 244 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 245 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 246 |
+
- [Discussion of Biases](#discussion-of-biases)
|
| 247 |
+
- [Other Known Limitations](#other-known-limitations)
|
| 248 |
+
- [Additional Information](#additional-information)
|
| 249 |
+
- [Dataset Curators](#dataset-curators)
|
| 250 |
+
- [Licensing Information](#licensing-information)
|
| 251 |
+
- [Citation Information](#citation-information)
|
| 252 |
+
- [Contributions](#contributions)
|
| 253 |
+
|
| 254 |
+
## Dataset Description
|
| 255 |
+
|
| 256 |
+
- **Homepage:** https://hover-nlp.github.io/
|
| 257 |
+
- **Repository:** https://github.com/hover-nlp/hover
|
| 258 |
+
- **Paper:** https://arxiv.org/abs/2011.03088
|
| 259 |
+
- **Leaderboard:** https://hover-nlp.github.io/
|
| 260 |
+
- **Point of Contact:** [More Information Needed]
|
| 261 |
+
|
| 262 |
+
### Dataset Summary
|
| 263 |
+
|
| 264 |
+
[More Information Needed]
|
| 265 |
+
|
| 266 |
+
### Supported Tasks and Leaderboards
|
| 267 |
+
|
| 268 |
+
[More Information Needed]
|
| 269 |
+
|
| 270 |
+
### Languages
|
| 271 |
+
|
| 272 |
+
[More Information Needed]
|
| 273 |
+
|
| 274 |
+
## Dataset Structure
|
| 275 |
+
|
| 276 |
+
### Data Instances
|
| 277 |
+
|
| 278 |
+
A sample training set is provided below
|
| 279 |
+
|
| 280 |
+
```
|
| 281 |
+
{'id': 14856, 'uid': 'a0cf45ea-b5cd-4c4e-9ffa-73b39ebd78ce', 'claim': 'The park at which Tivolis Koncertsal is located opened on 15 August 1843.', 'supporting_facts': [{'key': 'Tivolis Koncertsal', 'value': 0}, {'key': 'Tivoli Gardens', 'value': 1}], 'label': 'SUPPORTED', 'num_hops': 2, 'hpqa_id': '5abca1a55542993a06baf937'}
|
| 282 |
+
```
|
| 283 |
+
|
| 284 |
+
Please note that in test set sentence only id, uid and claim are available. Labels are not available in test set and are represented by -1.
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
### Data Fields
|
| 288 |
+
|
| 289 |
+
[More Information Needed]
|
| 290 |
+
|
| 291 |
+
### Data Splits
|
| 292 |
+
|
| 293 |
+
[More Information Needed]
|
| 294 |
+
|
| 295 |
+
## Dataset Creation
|
| 296 |
+
|
| 297 |
+
### Curation Rationale
|
| 298 |
+
|
| 299 |
+
[More Information Needed]
|
| 300 |
+
|
| 301 |
+
### Source Data
|
| 302 |
+
|
| 303 |
+
[More Information Needed]
|
| 304 |
+
|
| 305 |
+
#### Initial Data Collection and Normalization
|
| 306 |
+
|
| 307 |
+
[More Information Needed]
|
| 308 |
+
|
| 309 |
+
#### Who are the source language producers?
|
| 310 |
+
|
| 311 |
+
[More Information Needed]
|
| 312 |
+
|
| 313 |
+
### Annotations
|
| 314 |
+
|
| 315 |
+
[More Information Needed]
|
| 316 |
+
|
| 317 |
+
#### Annotation process
|
| 318 |
+
|
| 319 |
+
[More Information Needed]
|
| 320 |
+
|
| 321 |
+
#### Who are the annotators?
|
| 322 |
+
|
| 323 |
+
[More Information Needed]
|
| 324 |
+
|
| 325 |
+
### Personal and Sensitive Information
|
| 326 |
+
|
| 327 |
+
[More Information Needed]
|
| 328 |
+
|
| 329 |
+
## Considerations for Using the Data
|
| 330 |
+
|
| 331 |
+
### Social Impact of Dataset
|
| 332 |
+
|
| 333 |
+
[More Information Needed]
|
| 334 |
+
|
| 335 |
+
### Discussion of Biases
|
| 336 |
+
|
| 337 |
+
[More Information Needed]
|
| 338 |
+
|
| 339 |
+
### Other Known Limitations
|
| 340 |
+
|
| 341 |
+
[More Information Needed]
|
| 342 |
+
|
| 343 |
+
## Additional Information
|
| 344 |
+
|
| 345 |
+
### Dataset Curators
|
| 346 |
+
|
| 347 |
+
[More Information Needed]
|
| 348 |
+
|
| 349 |
+
### Licensing Information
|
| 350 |
+
|
| 351 |
+
[More Information Needed]
|
| 352 |
+
|
| 353 |
+
### Citation Information
|
| 354 |
+
|
| 355 |
+
[More Information Needed]
|
| 356 |
+
### Contributions
|
| 357 |
+
|
| 358 |
+
Thanks to [@abhishekkrthakur](https://github.com/abhishekkrthakur) for adding this dataset.
|
| 359 |
+
|
| 360 |
+
</details>
|
hover.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2020 HuggingFace Datasets Authors.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
|
| 16 |
+
# Lint as: python3
|
| 17 |
+
import json
|
| 18 |
+
|
| 19 |
+
import datasets
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
_DESCRIPTION = """\
|
| 23 |
+
HoVer is an open-domain, many-hop fact extraction and claim verification dataset built upon the Wikipedia corpus. The original 2-hop claims are adapted from question-answer pairs from HotpotQA. It is collected by a team of NLP researchers at UNC Chapel Hill and Verisk Analytics.
|
| 24 |
+
"""
|
| 25 |
+
_HOMEPAGE_URL = "https://hover-nlp.github.io/"
|
| 26 |
+
_CITATION = """\
|
| 27 |
+
@inproceedings{jiang2020hover,
|
| 28 |
+
title={{HoVer}: A Dataset for Many-Hop Fact Extraction And Claim Verification},
|
| 29 |
+
author={Yichen Jiang and Shikha Bordia and Zheng Zhong and Charles Dognin and Maneesh Singh and Mohit Bansal.},
|
| 30 |
+
booktitle={Findings of the Conference on Empirical Methods in Natural Language Processing ({EMNLP})},
|
| 31 |
+
year={2020}
|
| 32 |
+
}
|
| 33 |
+
"""
|
| 34 |
+
|
| 35 |
+
_TRAIN_URL = "https://raw.githubusercontent.com/hover-nlp/hover/main/data/hover/hover_train_release_v1.1.json"
|
| 36 |
+
_VALID_URL = "https://raw.githubusercontent.com/hover-nlp/hover/main/data/hover/hover_dev_release_v1.1.json"
|
| 37 |
+
_TEST_URL = "https://raw.githubusercontent.com/hover-nlp/hover/main/data/hover/hover_test_release_v1.1.json"
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
class Hover(datasets.GeneratorBasedBuilder):
|
| 41 |
+
VERSION = datasets.Version("1.1.0")
|
| 42 |
+
|
| 43 |
+
def _info(self):
|
| 44 |
+
return datasets.DatasetInfo(
|
| 45 |
+
description=_DESCRIPTION,
|
| 46 |
+
features=datasets.Features(
|
| 47 |
+
{
|
| 48 |
+
"id": datasets.Value("int32"),
|
| 49 |
+
"uid": datasets.Value("string"),
|
| 50 |
+
"claim": datasets.Value("string"),
|
| 51 |
+
"supporting_facts": [
|
| 52 |
+
{
|
| 53 |
+
"key": datasets.Value("string"),
|
| 54 |
+
"value": datasets.Value("int32"),
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"label": datasets.ClassLabel(names=["NOT_SUPPORTED", "SUPPORTED"]),
|
| 58 |
+
"num_hops": datasets.Value("int32"),
|
| 59 |
+
"hpqa_id": datasets.Value("string"),
|
| 60 |
+
},
|
| 61 |
+
),
|
| 62 |
+
supervised_keys=None,
|
| 63 |
+
homepage=_HOMEPAGE_URL,
|
| 64 |
+
citation=_CITATION,
|
| 65 |
+
)
|
| 66 |
+
|
| 67 |
+
def _split_generators(self, dl_manager):
|
| 68 |
+
train_path = dl_manager.download_and_extract(_TRAIN_URL)
|
| 69 |
+
valid_path = dl_manager.download_and_extract(_VALID_URL)
|
| 70 |
+
test_path = dl_manager.download_and_extract(_TEST_URL)
|
| 71 |
+
return [
|
| 72 |
+
datasets.SplitGenerator(
|
| 73 |
+
name=datasets.Split.TRAIN,
|
| 74 |
+
gen_kwargs={"datapath": train_path, "datatype": "train"},
|
| 75 |
+
),
|
| 76 |
+
datasets.SplitGenerator(
|
| 77 |
+
name=datasets.Split.VALIDATION,
|
| 78 |
+
gen_kwargs={"datapath": valid_path, "datatype": "valid"},
|
| 79 |
+
),
|
| 80 |
+
datasets.SplitGenerator(
|
| 81 |
+
name=datasets.Split.TEST,
|
| 82 |
+
gen_kwargs={"datapath": test_path, "datatype": "test"},
|
| 83 |
+
),
|
| 84 |
+
]
|
| 85 |
+
|
| 86 |
+
def _generate_examples(self, datapath, datatype):
|
| 87 |
+
with open(datapath, encoding="utf-8") as f:
|
| 88 |
+
data = json.load(f)
|
| 89 |
+
|
| 90 |
+
for sentence_counter, d in enumerate(data):
|
| 91 |
+
if datatype != "test":
|
| 92 |
+
resp = {
|
| 93 |
+
"id": sentence_counter,
|
| 94 |
+
"uid": d["uid"],
|
| 95 |
+
"claim": d["claim"],
|
| 96 |
+
"supporting_facts": [{"key": x[0], "value": x[1]} for x in d["supporting_facts"]],
|
| 97 |
+
"label": d["label"],
|
| 98 |
+
"num_hops": d["num_hops"],
|
| 99 |
+
"hpqa_id": d["hpqa_id"],
|
| 100 |
+
}
|
| 101 |
+
else:
|
| 102 |
+
resp = {
|
| 103 |
+
"id": sentence_counter,
|
| 104 |
+
"uid": d["uid"],
|
| 105 |
+
"claim": d["claim"],
|
| 106 |
+
"supporting_facts": [],
|
| 107 |
+
"label": -1,
|
| 108 |
+
"num_hops": -1,
|
| 109 |
+
"hpqa_id": "None",
|
| 110 |
+
}
|
| 111 |
+
yield sentence_counter, resp
|