jorses commited on
Commit
9d54dd4
·
1 Parent(s): 79d6354

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -1
README.md CHANGED
@@ -655,7 +655,7 @@ configs:
655
  - data/047_Bank/qa.parquet
656
  - data/048_Data/qa.parquet
657
  - data/049_Boris/qa.parquet
658
- - split: test
659
  path:
660
  - data/050_ING/qa.parquet
661
  - data/051_Pokemon/qa.parquet
@@ -798,3 +798,29 @@ If you use this resource, please use the following reference:
798
  address = "Turin, Italy"
799
  }
800
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
655
  - data/047_Bank/qa.parquet
656
  - data/048_Data/qa.parquet
657
  - data/049_Boris/qa.parquet
658
+ - split: dev
659
  path:
660
  - data/050_ING/qa.parquet
661
  - data/051_Pokemon/qa.parquet
 
798
  address = "Turin, Italy"
799
  }
800
  ```
801
+
802
+ # Usage
803
+
804
+ ```python
805
+ from datasets import load_dataset
806
+
807
+ # Load all QA pairs
808
+ all_qa = load_dataset("cardiffnlp/databench", name="qa", split="full")
809
+
810
+ # Load SemEval 2025 task 8 Question-Answer splits
811
+ semeval_train_qa = load_dataset("cardiffnlp/databench", name="semeval", split="train")
812
+ semeval_dev_qa = load_dataset("cardiffnlp/databench", name="semeval", split="dev")
813
+
814
+
815
+ # is "001_Forbes", the id of the dataset where information to answer the Question is located
816
+ all_qa['dataset'][0]
817
+
818
+ # This id can be used load a specific Question-Answer pair collection from the splits
819
+ forbes_qa = load_dataset("cardiffnlp/databench", name="qa", split=all_qa['dataset'][0] )
820
+
821
+ # you can load a specific dataset containg the "answer" for a QA pair using the
822
+ forbes_full = load_dataset("cardiffnlp/databench", name=all_qa['dataset'][0] , split="full")
823
+
824
+ # or to load the databench lite equivalent dataset, to answer the "sample_answer"
825
+ forbes_sample = load_dataset("cardiffnlp/databench", name=all_qa['dataset'][0] , split="lite")
826
+ ```