File size: 2,631 Bytes
b33e8bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
af9ab9f
 
 
 
 
b33e8bb
 
 
 
 
af9ab9f
 
eccb68a
 
 
 
 
1a6abba
 
 
 
d31727f
1a6abba
d794eba
1a6abba
d31727f
1a6abba
 
 
d31727f
 
 
 
 
1a6abba
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
dataset_info:
  features:
  - name: qid
    dtype: string
  - name: question
    dtype: string
  - name: answer
    dtype: string
  - name: context
    sequence: string
  - name: answers
    sequence: string
  - name: competition
    dtype: string
  - name: timestamp
    dtype: string
  - name: section
    dtype: string
  - name: number
    dtype: string
  - name: original_question
    dtype: string
  - name: original_answer
    dtype: string
  - name: original_additional_info
    dtype: string
  splits:
  - name: train
    num_bytes: 7981391
    num_examples: 2939
  - name: validation
    num_bytes: 2671680
    num_examples: 980
  download_size: 6275956
  dataset_size: 10653071
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
license: cc-by-sa-4.0
task_categories:
- question-answering
language:
- ja
---

# jaqket_v1_qa_wikija_context

[AI王 公式配布データセット(JAQKET)](https://sites.google.com/view/project-aio/dataset?authuser=0)へ、Wikipedia のコンテキストを追加したデータセットです。

JAQKET で公開されていて、かつライセンスが[CC BY-SA 4.0 DEED](https://creativecommons.org/licenses/by-sa/4.0/deed.ja)のデータをもとに、質問の回答が含まれる Wikipedia の passage をコンテキスト追加し HuggingFace Dataset を作成した物です。Q&A タスクにコンテキスト入れて学習させたいときや、質問 + コンテキストから回答をきちんと抽出できるのか(RAGのreader用途)、といったタスクの利用が想定されます。

データセットの context には、wikipedia の関連 Passage の Top-3 が格納されていて、このTop-3のうちのどこかの文字列に answer が含まれています。データはtrain 2939件、validation 980件に split しています。

wikipedia passage には [singletongue/wikipedia-utils の passages-c400-jawiki-20230403](https://huggingface.co/datasets/singletongue/wikipedia-utils/viewer/passages-c400-jawiki-20230403)を、質問から関連する passage の取得には [hotchpotch/wikipedia-passages-jawiki-embeddings](https://huggingface.co/datasets/hotchpotch/wikipedia-passages-jawiki-embeddings)の `multilingual-e5-large-query` を使って類似ベクトル検索し抽出しています。


## データセットの作成スクリプト

- https://huggingface.co/datasets/hotchpotch/jaqket_v1_qa_wikija_context/blob/main/create_dataset.ipynb

## ライセンス

- [CC BY-SA 4.0 DEED](https://creativecommons.org/licenses/by-sa/4.0/deed.ja)