Datasets:
Tasks:
Sentence Similarity
Modalities:
Text
Formats:
json
Sub-tasks:
semantic-similarity-classification
Languages:
English
Size:
1M - 10M
License:
Commit
·
cf94717
1
Parent(s):
25ab014
Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,11 @@ language:
|
|
4 |
- en
|
5 |
paperswithcode_id: embedding-data/Amazon-QA
|
6 |
pretty_name: Amazon-QA
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
|
10 |
# Dataset Card for "Amazon-QA"
|
@@ -45,49 +49,47 @@ pretty_name: Amazon-QA
|
|
45 |
|
46 |
### Dataset Summary
|
47 |
|
48 |
-
This dataset contains Question and Answer data from Amazon
|
49 |
-
|
50 |
-
This dataset can be combined with Amazon product review data, available [here](http://jmcauley.ucsd.edu/data/amazon/),
|
51 |
-
by matching ASINs in the Q/A dataset with ASINs in the review data. The review data also includes product metadata (product titles etc.).
|
52 |
|
53 |
Disclaimer: The team releasing Amazon-QA did not upload the dataset to the Hub and did not write a dataset card.
|
54 |
These steps were done by the Hugging Face team.
|
55 |
|
56 |
-
### Supported Tasks
|
57 |
-
|
58 |
-
[More Information Needed](http://jmcauley.ucsd.edu/data/amazon/qa/)
|
59 |
-
|
60 |
### Languages
|
61 |
-
|
62 |
-
|
63 |
## Dataset Structure
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
### Data Instances
|
66 |
|
67 |
### Data Fields
|
68 |
|
69 |
-
Sample question (and answer):
|
70 |
-
|
71 |
-
```
|
72 |
-
{
|
73 |
-
"asin": "B000050B6Z",
|
74 |
-
"questionType": "yes/no",
|
75 |
-
"answerType": "Y",
|
76 |
-
"answerTime": "Aug 8, 2014",
|
77 |
-
"unixTime": 1407481200,
|
78 |
-
"question": "Can you use this unit with GEL shaving cans?",
|
79 |
-
"answer": "Yes. If the can fits in the machine it will despense hot gel lather. I've been using my machine for both , gel and traditional lather for over 10 years."
|
80 |
-
}
|
81 |
-
```
|
82 |
-
where
|
83 |
-
|
84 |
-
asin - ID of the product, e.g. B000050B6Z
|
85 |
-
questionType - type of question. Could be 'yes/no' or 'open-ended'
|
86 |
-
answerType - type of answer. Could be 'Y', 'N', or '?' (if the polarity of the answer could not be predicted). Only present for yes/no questions.
|
87 |
-
answerTime - raw answer timestamp
|
88 |
-
unixTime - answer timestamp converted to unix time
|
89 |
-
question - question text
|
90 |
-
answer - answer text
|
91 |
|
92 |
### Data Splits
|
93 |
|
@@ -147,19 +149,9 @@ answer - answer text
|
|
147 |
|
148 |
### Citation Information
|
149 |
|
150 |
-
```
|
151 |
-
Modeling ambiguity, subjectivity, and diverging viewpoints in opinion question answering systems
|
152 |
-
Mengting Wan, Julian McAuley
|
153 |
-
International Conference on Data Mining (ICDM), 2016
|
154 |
|
155 |
-
Addressing complex and subjective product-related queries with customer reviews
|
156 |
-
Julian McAuley, Alex Yang
|
157 |
-
World Wide Web (WWW), 2016
|
158 |
-
|
159 |
-
```
|
160 |
|
161 |
|
162 |
### Contributions
|
163 |
|
164 |
-
Thanks to [Julian McAuley](https://cseweb.ucsd.edu//~jmcauley/#) for adding this dataset.
|
165 |
|
|
|
4 |
- en
|
5 |
paperswithcode_id: embedding-data/Amazon-QA
|
6 |
pretty_name: Amazon-QA
|
7 |
+
task_categories:
|
8 |
+
- sentence-similarity
|
9 |
+
- paraphrase-mining
|
10 |
+
task_ids:
|
11 |
+
- semantic-similarity-classification
|
12 |
---
|
13 |
|
14 |
# Dataset Card for "Amazon-QA"
|
|
|
49 |
|
50 |
### Dataset Summary
|
51 |
|
52 |
+
This dataset contains Question and Answer data from Amazon.
|
|
|
|
|
|
|
53 |
|
54 |
Disclaimer: The team releasing Amazon-QA did not upload the dataset to the Hub and did not write a dataset card.
|
55 |
These steps were done by the Hugging Face team.
|
56 |
|
57 |
+
### Supported Tasks
|
58 |
+
- [Sentence Transformers](https://huggingface.co/sentence-transformers) training; useful for semantic search and sentence similarity.
|
|
|
|
|
59 |
### Languages
|
60 |
+
- English.
|
|
|
61 |
## Dataset Structure
|
62 |
+
Each example in the dataset contains pairs of query and answer sentences and is formatted as a dictionary:
|
63 |
+
```
|
64 |
+
{"query": [sentence_1], "pos": [answer]}
|
65 |
+
{"query": [sentence_1], "pos": [answer]}
|
66 |
+
...
|
67 |
+
{"query": [sentence_1], "pos": [answer]}
|
68 |
+
```
|
69 |
+
This dataset is useful for training Sentence Transformers models. Refer to the following post on how to train models using similar sentences.
|
70 |
+
### Usage Example
|
71 |
+
Install the 🤗 Datasets library with `pip install datasets` and load the dataset from the Hub with:
|
72 |
+
```python
|
73 |
+
from datasets import load_dataset
|
74 |
+
dataset = load_dataset("embedding-data/Amazon-QA")
|
75 |
+
```
|
76 |
+
The dataset is loaded as a `DatasetDict` and has the format:
|
77 |
+
```python
|
78 |
+
DatasetDict({
|
79 |
+
train: Dataset({
|
80 |
+
features: ['query', 'pos'],
|
81 |
+
num_rows: 1095290
|
82 |
+
})
|
83 |
+
})
|
84 |
+
```
|
85 |
+
Review an example `i` with:
|
86 |
+
```python
|
87 |
+
dataset["train"][0]
|
88 |
+
```
|
89 |
### Data Instances
|
90 |
|
91 |
### Data Fields
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
### Data Splits
|
95 |
|
|
|
149 |
|
150 |
### Citation Information
|
151 |
|
|
|
|
|
|
|
|
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
|
155 |
### Contributions
|
156 |
|
|
|
157 |
|