flyingbertman commited on
Commit
22bb109
·
verified ·
1 Parent(s): 75da467

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +111 -2
README.md CHANGED
@@ -1,5 +1,114 @@
1
  ---
2
  license: other
3
- license_name: quora-qp-terms
4
- license_link: LICENSE
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: other
3
+ license_name: quora-qp-release-terms
4
+ license_link: https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs
5
+ pretty_name: Quora Question Pairs (2017 canonical release)
6
+ task_categories:
7
+ - sentence-similarity
8
+ - text-classification
9
+ language:
10
+ - en
11
+ size_categories:
12
+ - 100K<n<1M
13
+ tags:
14
+ - embeddings
15
+ - sentence-similarity
16
+ - paraphrase
17
+ - duplicate-questions
18
+ - quora
19
+ - qqp
20
+ source_datasets:
21
+ - original
22
  ---
23
+
24
+ # Quora Question Pairs — canonical 2017 release
25
+
26
+ A verbatim mirror of [Quora's January 2017 Question Pairs release](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs), packaged as a single tab-delimited file. No rows added, removed, or reordered relative to the upstream `quora_duplicate_questions.tsv` — only the hosting moved.
27
+
28
+ Re-hosted under Heliosoph for ingestion-pipeline stability — Quora's original CDN at `qim.fs.quoracdn.net` has been intermittently unreachable since the Kaggle competition wrapped, and the file has no checksumed permanent URL upstream.
29
+
30
+ Credit: Shankar Iyer, Nikhil Dandekar, and Kornél Csernai (Quora, 2017) — questions authored by Quora users.
31
+
32
+ ## Why a mirror?
33
+
34
+ The original release URL (`qim.fs.quoracdn.net/quora_duplicate_questions.tsv`) is the single canonical source, but it has gone offline for weeks at a time in past years, and there's no published checksum to verify a recovered copy against. Pinning a HuggingFace revision gives ingestion pipelines a stable, reproducible handle: the same SHA fetches the same bytes forever.
35
+
36
+ The file itself is unmodified — md5 / sha256 against the upstream copy (when it's online) will match exactly.
37
+
38
+ ## What this repo contains
39
+
40
+ ```
41
+ quora_duplicate_questions.tsv # 404,290 rows, ~55 MB, UTF-8, tab-delimited
42
+ ```
43
+
44
+ One file, six columns, header row included:
45
+
46
+ | Column | Type | Meaning |
47
+ |---|---|---|
48
+ | `id` | int | Row index (0-based). |
49
+ | `qid1` | int | Stable id of `question1` in Quora's internal question table. |
50
+ | `qid2` | int | Stable id of `question2`. |
51
+ | `question1` | string | First question, original casing + punctuation. |
52
+ | `question2` | string | Second question, original casing + punctuation. |
53
+ | `is_duplicate` | int (0/1) | Human label: 1 if the pair asks the same thing, else 0. |
54
+
55
+ The `qid1` / `qid2` columns let you build a question-level view by deduping — the corpus is ~537k distinct questions arranged into 404k pairs.
56
+
57
+ ## How to use
58
+
59
+ Load with the `datasets` library:
60
+
61
+ ```python
62
+ from datasets import load_dataset
63
+
64
+ ds = load_dataset("Heliosoph/Quora-Question-Pairs", split="train")
65
+ print(ds[0])
66
+ # {'id': 0, 'qid1': 1, 'qid2': 2,
67
+ # 'question1': 'What is the step by step guide to invest in share market in india?',
68
+ # 'question2': 'What is the step by step guide to invest in share market?',
69
+ # 'is_duplicate': 0}
70
+ ```
71
+
72
+ Or read the TSV directly with pandas:
73
+
74
+ ```python
75
+ import pandas as pd
76
+
77
+ df = pd.read_csv("quora_duplicate_questions.tsv", sep="\t")
78
+ print(df.shape) # (404290, 6)
79
+ print(df["is_duplicate"].mean()) # ~0.369 — about 37% of pairs are duplicates
80
+ ```
81
+
82
+ ## Dataset specs
83
+
84
+ | | Spec |
85
+ |---|---|
86
+ | Rows | 404,290 question pairs |
87
+ | Distinct questions | ~537,000 |
88
+ | Duplicate share | ~36.9% labelled `is_duplicate = 1` |
89
+ | Encoding | UTF-8 |
90
+ | Delimiter | Tab (`\t`) |
91
+ | Quoting | Minimal — embedded tabs in question text are rare but present; standard CSV/TSV readers handle them with double-quote escaping |
92
+ | File size | ~55 MB on disk |
93
+ | Language | English |
94
+
95
+ ## When to pick Quora Question Pairs
96
+
97
+ - **Sentence-embedding evaluation**: encode `question1` + `question2`, take cosine similarity of the L2-normalised vectors, threshold for a binary classifier, report accuracy / F1 against `is_duplicate`. This is the canonical paired-cosine evaluation that every English sentence embedder (MiniLM, BGE, Jina, E5, GTE) reports.
98
+ - **Duplicate-detection training**: 404k labelled pairs is enough to fine-tune a small encoder end-to-end on a single GPU in hours.
99
+ - **Paraphrase identification**: the label space (same question or not) is a clean two-class proxy for paraphrase / non-paraphrase.
100
+
101
+ For larger-scale retrieval (millions of passages) reach for **MS MARCO** instead — Quora QP is purpose-built for pairwise similarity, not document retrieval.
102
+
103
+ ## Label notes
104
+
105
+ The `is_duplicate` flag is human-annotated but not gold-standard: Quora's release post explicitly notes that some labels are noisy ("the ground-truth labels contain some amount of noise: they are not guaranteed to be perfect"). For benchmark numbers, report on the full corpus rather than a hand-cleaned subset to keep results comparable.
106
+
107
+ ## License
108
+
109
+ **Non-standard research-use terms** from Quora's 2017 release. Allows research, experimentation, and unmodified redistribution with attribution back to Quora. Commercial deployment is not explicitly addressed in the original announcement and should be reviewed separately.
110
+
111
+ The HuggingFace metadata tags this `other` because no SPDX identifier matches; the canonical terms are the [release announcement](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs).
112
+
113
+ - Release announcement: [First Quora Dataset Release: Question Pairs](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
114
+ - Kaggle competition (same data): [Quora Question Pairs](https://www.kaggle.com/competitions/quora-question-pairs)