Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
itemId
int64
8
1.33M
image
imagewidth (px)
199
240
1,007,645
985,068
534,028
1,191,633
1,260,672
329,544
1,039,973
428,373
9,733
899,333
1,322,333
733,933
873,932
110,369
1,016,990
407,390
161,590
14,147
476,569
1,145,304
554,904
787,528
1,041,610
1,226,627
86,425
503,684
1,095,327
484,927
775,966
835,967
1,103,351
512,951
52,112
108,526
1,218,911
609,311
949,310
744,563
804,562
523,554
222,363
1,010,339
401,939
992,514
139,923
1,229,514
89,716
1,152,678
790,054
461,015
63
360,622
107,615
606,022
946,023
1,123,081
658,638
918,639
318,941
1,008,576
702,536
842,537
91,159
1,027,595
195,377
694,540
150,995
264,336
565,501
309,694
326,677
427,040
6,400
896,000
640,077
900,076
141,640
1,294,095
34,297
42,301
321,118
1,113,142
1,085,134
647,718
907,719
118,735
619,102
959,103
513,497
1,314,859
705,259
845,258
126,803
1,236,434
96,636
1,051,403
192,418
341,834
263,459
449,799
End of preview. Expand in Data Studio

zidcenek/GLAMI-Entity-Matching-Dataset(複製)

データの内容

GLAMI の EC 商品掲載の重複検出のデータ。約 130 万件の商品画像と、多言語のタイトル・説明・属性を含み、同じ実物の商品を指すかどうかのラベル付きの商品グループを収める。構成は images・items・splits・groups の 4 つの設定で、groups は 5〜10 件の候補の組からなる。Apache License 2.0 で公開されているが、ラベルの作り方はカードに「TODO」とあり未記述。

データの概要

項目 値
行数・列数 不明(データセットビューアで読めない形式。ファイルの内訳だけを示す)
容量 17.81 GB(ファイル 58 本)
ファイルの形式 parquet 42、csv 10、py 2
言語 bg, cs, el, hr, hu, pl, ro, sk
公開 public

全データセットの一覧は HYUKI5/dataset-catalog にある。

複製について

zidcenek/GLAMI-Entity-Matching-Dataset をリビジョン 155003869a7feb0231efc1c1b79a0b2a2fa63fc9 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。

出典

論文

  • 元のカードに論文へのリンクは見つからなかった

アノテーションの方法

元のカードにアノテーションの節が無かった。下の「調査メモの記述」と「元のカード」を参照。

微調整に使うときの注意

  • 調査メモの台帳での区分: A(許諾型のライセンスだけで、疑義の注記が無い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
  • Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
  • 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。

調査メモの記述

メモ 節 ライセンス(記載) 確認 注記
ontology_tables_schema_kg.md Q2. 2 つのスキーマ・2 つのレコードが同じものを指すか(スキーマ照合・エンティティ照合・商品の同一判定)のラベルつきデータは何があるか (L73) apache-2.0 確認済 原文注記: README に「TODO: describe how the labels were produced」とあり、ラベルの作り方が不明。件数(群の数)は未取得

元のカード(日本語訳)

以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。


GLAMI の重複検出

GLAMI の EC 商品掲載に対する、商品の重複検出。約 130 万件の商品画像と、多言語のタイトル・説明・属性を含み、同じ実物の商品を指すかどうかのラベル付きの商品グループを収める。

Apache License 2.0 のもとで公開されている。ライセンス を参照。

TODO: ラベルがどのように作られたかを記述する。

構成

Config Files Contents
images images/shard-*.parquet itemId → 画像のバイト列。商品画像 1 枚につき 1 行
items items_train.csv, items_test.csv itemId、price、colorTagIdsString、departmentIds、brandEditionTagId、title、description、geo。学習データには label もある
splits train_split.csv, val_split.csv 学習データの項目を、学習用と検証用に分けたもの
groups groups_*.csv item1..itemN、label — 5〜10 件の候補グループ。加えて hard_ と category_ の敵対的な派生版

画像は itemId だけで索引付けされ、事前に分割されてはいない。ほかのすべてのファイルは itemId を参照するため、どれも同じ画像の表と結合でき、同じ画像が二重に保存されることはない。

使い方

from datasets import load_dataset

images = load_dataset("zidcenek/GLAMI-Entity-Matching-Dataset", "images", split="train")
items  = load_dataset("zidcenek/GLAMI-Entity-Matching-Dataset", "items",  split="train")
groups = load_dataset("zidcenek/GLAMI-Entity-Matching-Dataset", "groups", split="g5")

images[0]["image"]    # PIL.Image, decoded lazily
images[0]["itemId"]

画像の設定は ~TODO GB ある。手元に全体のコピーを置きたくない場合は、ストリーミングで読む:

images = load_dataset(
    "zidcenek/GLAMI-Entity-Matching-Dataset", "images", split="train", streaming=True
)

商品に画像を対応付けるには、itemId から行番号への対応表を一度作り、それで索引を引く:

index = {item_id: i for i, item_id in enumerate(images["itemId"])}
row = images[index[items[0]["itemId"]]]

画像のシャードを再現する

pip install -U datasets Pillow "huggingface_hub[hf_xet]"

python scripts/build_image_shards.py --inspect    # check the filename -> itemId mapping
python scripts/build_image_shards.py              # glami_images.tar.gz -> images/shard-*.parquet
hf auth login
python scripts/upload_to_hub.py                   # push to the Hub over HTTP

どちらのスクリプトも途中から再開できる。中断したら同じコマンドを再実行する。 すべてのオプションは、各スクリプトの冒頭を参照。

引用

TODO

原文(英語)

GLAMI Duplication Detection

Product-duplicate detection over GLAMI e-commerce listings: ~1.3M product images plus multilingual titles, descriptions and attributes, with labelled groups of items that do or do not refer to the same physical product.

Released under the Apache License 2.0 — see LICENSE.

TODO: describe how the labels were produced.

Structure

Config Files Contents
images images/shard-*.parquet itemId → image bytes, one row per product image
items items_train.csv, items_test.csv itemId, price, colorTagIdsString, departmentIds, brandEditionTagId, title, description, geo, and label on train
splits train_split.csv, val_split.csv train/validation partition of the training items
groups groups_*.csv item1..itemN, label — candidate groups of 5–10 items, plus hard_ and category_ adversarial variants

Images are keyed by itemId alone and are not pre-split. Every other file references itemId, so all of them join against the same image table and no picture is stored twice.

Usage

from datasets import load_dataset

images = load_dataset("zidcenek/GLAMI-Entity-Matching-Dataset", "images", split="train")
items  = load_dataset("zidcenek/GLAMI-Entity-Matching-Dataset", "items",  split="train")
groups = load_dataset("zidcenek/GLAMI-Entity-Matching-Dataset", "groups", split="g5")

images[0]["image"]    # PIL.Image, decoded lazily
images[0]["itemId"]

The image config is ~TODO GB, so stream it if you do not want a full local copy:

images = load_dataset(
    "zidcenek/GLAMI-Entity-Matching-Dataset", "images", split="train", streaming=True
)

To attach images to items, build the itemId → row-index map once and index into it:

index = {item_id: i for i, item_id in enumerate(images["itemId"])}
row = images[index[items[0]["itemId"]]]

Reproducing the image shards

pip install -U datasets Pillow "huggingface_hub[hf_xet]"

python scripts/build_image_shards.py --inspect    # check the filename -> itemId mapping
python scripts/build_image_shards.py              # glami_images.tar.gz -> images/shard-*.parquet
hf auth login
python scripts/upload_to_hub.py                   # push to the Hub over HTTP

Both scripts are resumable: rerun the same command after an interruption. See the header of each for the full options.

Citation

TODO

Downloads last month
104