LegalQA

April 9, 2019 ยท View on GitHub

A Chinese question answering dataset for legal advice.

Description

  • The corpus contains legal question answer pairs from Chinese online forums. The questions are raised by netizens and the answer are provided by licensed lawyers.
  • It contains 4 data fields: question subject, question body, answer and label.
  • The positive question answer pairs are the ground truth pair provided online. For all the questions, we select answers to other questions of the same category as negative answers.
  • We manually annotate part of the dataset to ensure correctness. Manually annotated subsets are named as ''LegalQA-manual-train.csv'', ''LegalQA-manual-dev.csv'' and ''LegalQA-manual-test.csv''.
  • For more QA pairs, please refer to the full dataset in LegalQA-all.zip which contains ''LegalQA-all-train.csv'', ''LegalQA-all-dev.csv'' and ''LegalQA-all-test.csv''.
  • Any further questions, contact as by raising issues.

Statistics

  1. LegalQA-manual
setsTrainDevTest
Number of questions78393136
Number of answers3121602865
Average length of questions160180159
Average length of answers414543
  1. LegalQA-all
setsTrainDevTest
Number of questions1052615933035
Number of answers2123728666091
Average length of questions160173168
Average length of answers414042
  1. Details
Dataset(train/dev/test)#Question#QA Pairs%Correct
LegalQA(manual)783/93/1367,258/816/1,16921.8/23.3/23.9
LegalQA(all)10,526/1,593/3,035100,590/11,965/26,91321.8/24.4/22.9

Experimental Results

  • Answer Selection
subsetMAPMRRP@1
LegalQA(manual)0.82300.87490.7868
LegalQA(all)0.82870.88670.8171