ThiagoFNJ commited on
Commit
11ba5be
·
verified ·
1 Parent(s): 3fde014

Upload DATASHEET.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. DATASHEET.md +86 -0
DATASHEET.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Datasheet — ESCI LLM Aspect Mining
2
+
3
+ Following the *Datasheets for Datasets* framework (Gebru et al., 2021).
4
+
5
+ ## Motivation
6
+
7
+ **Why was it created?** To provide a product-intrinsic, polarity-labeled **aspect-annotation
8
+ layer** over the reviews in the Amazon ESCI benchmark, and to serve as a worked reference for
9
+ *calibrated LLM-as-ETL*: extraction whose quality and cost are measured before and during a
10
+ multi-million-record run. It supports aspect-based sentiment analysis, review-aspect retrieval,
11
+ and research on LLM extraction reliability at scale.
12
+
13
+ ## Composition
14
+
15
+ **What do the instances represent?** Each row of `review_aspects.parquet` is one *(review,
16
+ extracted aspect)* pair over the **`us` locale of ESCI-S**. `product_aspects.parquet` aggregates
17
+ these to *(product, facet)* polarity counts.
18
+
19
+ **Scope and size.** US locale only. 447,924 catalog products; 412,739 carry reviews (≤13 each).
20
+ **9,507,120** review rows (**8,850,361** with an aspect; the rest examined with no
21
+ product-intrinsic aspect, kept as null-facet rows), over **3,950,828 reviews** (99.96% of the
22
+ 3,952,486 in scope). **5,372,779** product–facet pairs over **408,099** products.
23
+
24
+ **What data does each instance contain?** Derived facet phrases (English, 1–4-word lowercase noun
25
+ phrases naming a product *dimension*), a polarity label, and join keys (`asin`, `review_no`,
26
+ `review_md5`). **No original review text is included.**
27
+
28
+ **Is any information missing?** By design: (a) `evidence` — the verbatim quote grounding each
29
+ aspect — is computed internally but **stripped from the release** (Amazon text is not
30
+ redistributed); (b) 1,658 reviews (0.04%) failed extraction (over-length, exceeding the 4096-token
31
+ context) and are absent; (c) reviews yielding no product-intrinsic aspect appear as null-facet
32
+ rows, distinguishing "examined, nothing found" from "not processed".
33
+
34
+ **Labels / ground truth.** Facets and polarities are **model-generated**, not human gold, except
35
+ the 598-review gold set in [`gold/`](gold/) (dev-248 / test-350) used for calibration. Held-out
36
+ facet F1 is **0.604** (semantic θ=0.80, 95% CI [0.566, 0.638]); polarity accuracy **0.9455**.
37
+
38
+ **Errors, noise, redundancies.** The annotations carry the extractor's measured error rate. The
39
+ corpus-scale §4.3 star cross-check confirms polarity is sound in aggregate (monotone in stars
40
+ across all slices) but makes **no per-review guarantee** — a low-star review can carry a true
41
+ positive facet ("comfortable, but fell apart").
42
+
43
+ ## Collection & preprocessing
44
+
45
+ **Source.** Reviews come from [ESCI-S](https://github.com/shuttie/esci-s), an unofficial
46
+ January-2023 scrape of Amazon, joined by ASIN to the
47
+ [Amazon ESCI benchmark](https://github.com/amazon-science/esci-data). This project does **not**
48
+ scrape Amazon and does **not** mirror ESCI-S.
49
+
50
+ **Extraction.** One pass per review through `google/gemma-4-12B-it` (BF16, served by vLLM with
51
+ guided JSON decoding, temperature 0), prompt `gi9` selected by a GEPA-style loop against the gold
52
+ set. Facets are constrained to product-intrinsic dimensions; delivery/shipping/price/seller are
53
+ excluded by the prompt. The full engineering record is in
54
+ [`docs/review-aspect-extraction.md`](docs/review-aspect-extraction.md).
55
+
56
+ ## Uses
57
+
58
+ **Suitable for:** aspect-based sentiment analysis, aspect-aware product retrieval/reranking,
59
+ faceted-search prototypes, and studies of LLM extraction quality, cost, and determinism at scale.
60
+
61
+ **Not suitable for:** claims about individual reviews (the signal is aggregate); a locale other
62
+ than US; or as a source of Amazon review text (there is none here).
63
+
64
+ **PII.** The released columns are abstracted facet phrases and hashes — no free text, no user
65
+ identifiers. Facet phrases are product dimensions and carry negligible PII risk. (The stripped
66
+ `evidence` column could in principle have contained incidental PII fragments — another reason it is
67
+ not distributed.)
68
+
69
+ ## Distribution & licensing
70
+
71
+ - **Derived annotations** (parquets, gold set): **CC-BY-4.0**. The license applies to the facet
72
+ phrases and polarity labels — the derivative annotation layer, which is the author's
73
+ contribution. Attribution is required (see the repository `CITATION.cff`). The license does
74
+ **not**, and legally cannot, extend to the underlying review *text*: that content is the
75
+ property of Amazon and its users, is **not redistributed** here, and no rights over it are
76
+ granted or implied. The reviews were obtained via ESCI-S, an unofficial scrape that this project
77
+ neither mirrors nor endorses; anyone reconstructing quotes (by joining ESCI-S on
78
+ `asin`+`review_no`) is responsible for their own lawful access to and use of that source text.
79
+ - **Code**: MIT.
80
+ - **ESCI benchmark labels**: Apache-2.0 (`amazon-science/esci-data`).
81
+
82
+ ## Maintenance
83
+
84
+ Maintained by the author. Corrections and re-runs (new prompt/model versions) would be published
85
+ as new dataset versions; the extractor and prompt are pinned by revision so any version is
86
+ re-derivable. `review_md5` lets consumers verify they joined the correct source review.