id large_string | code large_string | name large_string | rarity large_string | card_type large_string | colors list | cost float64 | power float64 | counter float64 | life null | attribute large_string | family_raw large_string | family list | effect_text large_string | trigger_text large_string | pack_id large_string | set_code large_string | set_name large_string | language large_string | has_rush bool | has_blocker bool | has_double_attack bool | has_banish bool | on_play bool | on_ko bool | when_attacking bool | end_of_your_turn bool | activate_main bool | counter_effect bool | power_modifier_self float64 | power_modifier_other float64 | card_draw_count float64 | damage_to_opponent_life null | don_attached_threshold float64 | cost_to_play_modifier float64 | targets_self_leader bool | targets_opponent_character bool | keywords list | triggers list | embedding list | umap_x float64 | umap_y float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EB01-003_p2 | EB01-003_p2 | Kid & Killer | Rare | Character | [
"Red"
] | 4 | 5,000 | null | null | ['Slash', 'Special'] | Supernovas/Kid Pirates | [
"Supernovas",
"Kid Pirates"
] | [Rush] (This card can attack on the turn in which it is played.)
[When Attacking] If your opponent has 2 or less Life cards, this Character gains +2000 power during this turn. | EB01 | EB01 | Promotion card | en | true | false | false | false | false | false | true | false | false | false | 2,000 | null | null | null | null | null | false | false | [
"Rush"
] | [] | [
0.05088786035776138,
-0.02953835390508175,
-0.007603933103382587,
0.003546064952388406,
0.004825572948902845,
0.006726555991917849,
0.0006488932995125651,
0.012575735338032246,
0.00782327726483345,
0.038897041231393814,
0.0028514747973531485,
0.004679343197494745,
0.04094425216317177,
-0.0... | 5.599773 | 2.950075 | |
EB01-003_p3 | EB01-003_p3 | Kid & Killer | Rare | Character | [
"Red"
] | 4 | 5,000 | null | null | ['Slash', 'Special'] | Supernovas/Kid Pirates | [
"Supernovas",
"Kid Pirates"
] | [Rush] (This card can attack on the turn in which it is played.)
[When Attacking] If your opponent has 2 or less Life cards, this Character gains +2000 power during this turn. | EB01 | EB01 | Promotion card | en | true | false | false | false | false | false | true | false | false | false | 2,000 | null | null | null | null | null | false | false | [
"Rush"
] | [] | [
0.05088786035776138,
-0.02953835390508175,
-0.007603933103382587,
0.003546064952388406,
0.004825572948902845,
0.006726555991917849,
0.0006488932995125651,
0.012575735338032246,
0.00782327726483345,
0.038897041231393814,
0.0028514747973531485,
0.004679343197494745,
0.04094425216317177,
-0.0... | 5.595113 | 2.947886 | |
EB01-003_p4 | EB01-003_p4 | Kid & Killer | Rare | Character | [
"Red"
] | 4 | 5,000 | null | null | ['Slash', 'Special'] | Supernovas/Kid Pirates | [
"Supernovas",
"Kid Pirates"
] | [Rush] (This card can attack on the turn in which it is played.)
[When Attacking] If your opponent has 2 or less Life cards, this Character gains +2000 power during this turn. | EB01 | EB01 | Promotion card | en | true | false | false | false | false | false | true | false | false | false | 2,000 | null | null | null | null | null | false | false | [
"Rush"
] | [] | [
0.05088786035776138,
-0.02953835390508175,
-0.007603933103382587,
0.003546064952388406,
0.004825572948902845,
0.006726555991917849,
0.0006488932995125651,
0.012575735338032246,
0.00782327726483345,
0.038897041231393814,
0.0028514747973531485,
0.004679343197494745,
0.04094425216317177,
-0.0... | 5.5889 | 2.951786 | |
EB01-006_p3 | EB01-006_p3 | Tony Tony.Chopper | SuperRare | Character | [
"Red"
] | 3 | 4,000 | 1,000 | null | ['Strike'] | Animal/Straw Hat Crew | [
"Animal",
"Straw Hat Crew"
] | [Blocker] (After your opponent declares an attack, you may rest this card to make it the new target of the attack.)
[DON!! x2] [When Attacking] Give up to 1 of your opponent's Characters −3000 power during this turn. | EB01 | EB01 | Promotion card | en | false | true | false | false | false | false | true | false | false | false | null | null | null | null | null | null | false | true | [
"Blocker",
"DON!! x2"
] | [] | [
0.06863004714250565,
-0.03370225429534912,
-0.008808543905615807,
-0.028800109401345253,
0.005514914635568857,
0.002814904320985079,
-0.03155756741762161,
-0.0035234177485108376,
0.04963423311710358,
0.07383857667446136,
-0.010800041258335114,
0.0031595865730196238,
0.028646918013691902,
-... | 3.844251 | -17.850004 | |
EB01-012_p3 | EB01-012_p3 | Cavendish | SuperRare | Character | [
"Green"
] | 5 | 6,000 | 1,000 | null | ['Slash'] | Supernovas/Beautiful Pirates | [
"Supernovas",
"Beautiful Pirates"
] | [On Play]/[When Attacking] If your Leader has the {Supernovas} type and you have no other [Cavendish] Characters, set up to 2 of your DON!! cards as active. | EB01 | EB01 | Promotion card | en | false | false | false | false | true | false | true | false | false | false | null | null | null | null | null | null | true | false | [
"Cavendish"
] | [] | [
0.07161358743906021,
-0.05393121764063835,
-0.007036108523607254,
-0.01436692290008068,
-0.008030741475522518,
-0.02298707701265812,
0.0014090635813772678,
0.007257137913256884,
0.0020721524488180876,
0.005783607251942158,
-0.03182825818657875,
-0.01989266276359558,
0.007072946522384882,
-... | 8.692356 | 7.976312 | |
EB01-014_p1 | EB01-014_p1 | Sanji | Rare | Character | [
"Green"
] | 4 | 5,000 | 2,000 | null | ['Strike'] | FILM/Straw Hat Crew | [
"FILM",
"Straw Hat Crew"
] | [DON!! x1] [Your Turn] This Character gains +1000 power for every 3 of your rested DON!! cards. | EB01 | EB01 | Promotion card | en | false | false | false | false | false | false | false | false | false | false | 1,000 | null | null | null | null | null | false | false | [
"DON!! x1"
] | [] | [
0.04478762671351433,
-0.027402956038713455,
-0.008139856159687042,
-0.012596520595252514,
-0.0010773339308798313,
0.004033096134662628,
-0.007661041337996721,
0.010460267774760723,
0.008765999227762222,
0.04007314145565033,
0.0083608478307724,
0.023572435602545738,
0.019447259604930878,
-0... | 7.303176 | 5.274178 | |
EB01-015_p1 | EB01-015_p1 | Scratchmen Apoo | Rare | Character | [
"Green"
] | 1 | 1,000 | 2,000 | null | ['Special'] | Supernovas/On-Air Pirates | [
"Supernovas",
"On-Air Pirates"
] | [On Play] Rest up to 1 of your opponent's Characters with a cost of 2 or less. | EB01 | EB01 | Promotion card | en | false | false | false | false | true | false | false | false | false | false | null | null | null | null | null | null | false | true | [] | [] | [
0.021686622872948647,
-0.01764061115682125,
-0.009063065983355045,
-0.01367551926523447,
-0.022010304033756256,
0.010762390680611134,
0.01950177550315857,
0.0188544150441885,
-0.01318999845534563,
0.0039044013246893883,
-0.05340735241770744,
-0.006230858154594898,
0.003337959526106715,
-0.... | -5.644965 | 20.463816 | |
EB01-015_p2 | EB01-015_p2 | Scratchmen Apoo | Rare | Character | [
"Green"
] | 1 | 1,000 | 2,000 | null | ['Special'] | Supernovas/On-Air Pirates | [
"Supernovas",
"On-Air Pirates"
] | [On Play] Rest up to 1 of your opponent's Characters with a cost of 2 or less. | EB01 | EB01 | Promotion card | en | false | false | false | false | true | false | false | false | false | false | null | null | null | null | null | null | false | true | [] | [] | [
0.021686622872948647,
-0.01764061115682125,
-0.009063065983355045,
-0.01367551926523447,
-0.022010304033756256,
0.010762390680611134,
0.01950177550315857,
0.0188544150441885,
-0.01318999845534563,
0.0039044013246893883,
-0.05340735241770744,
-0.006230858154594898,
0.003337959526106715,
-0.... | -5.666536 | 20.441303 | |
EB01-015_p4 | EB01-015_p4 | Scratchmen Apoo | Rare | Character | [
"Green"
] | 1 | 1,000 | 2,000 | null | ['Special'] | Supernovas/On-Air Pirates | [
"Supernovas",
"On-Air Pirates"
] | [On Play] Rest up to 1 of your opponent's Characters with a cost of 2 or less. | EB01 | EB01 | Promotion card | en | false | false | false | false | true | false | false | false | false | false | null | null | null | null | null | null | false | true | [] | [] | [0.021686622872948647,-0.01764061115682125,-0.009063065983355045,-0.01367551926523447,-0.02201030403(...TRUNCATED) | -5.644986 | 20.463919 | |
EB01-043_p1 | EB01-043_p1 | Spandine | Rare | Character | [
"Black"
] | 3 | 2,000 | 1,000 | null | ['Wisdom'] | CP9 | [
"CP9"
] | "[On Play] You may place 3 cards with a type including \"CP\" from your trash at the bottom of your (...TRUNCATED) | EB01 | EB01 | Promotion card | en | false | false | false | false | true | false | false | false | false | false | null | null | null | null | null | null | false | false | [
"Spandine"
] | [] | [0.038313109427690506,-0.05185232684016228,-0.005689352750778198,-0.016563937067985535,-0.0064455321(...TRUNCATED) | 5.815314 | 11.334643 |
OPTCG English Card Embeddings
Text embeddings for the One Piece Card Game (English) generated
with Qwen/Qwen3-Embedding-0.6B,
plus UMAP 2-D coordinates for visualization. Joins to the sibling
t22000t/optcg-en-cards
dataset on id.
Generated by the open-source optcg-cards
pipeline. Refreshed monthly.
Dataset summary
- One row per card. Same rows as the cards repo, plus three columns:
embedding: list of floats. L2-normalized; cosine similarity = dot product. Default dim 1024 (full Qwen3-Embedding-0.6B output).umap_x,umap_y: float UMAP 2-D coordinates.
- Vectors are produced by encoding a structured "card document" — a
prettified JSON of mechanics-relevant fields, with the card's own
name substituted out and a task instruction prepended. See
DOCUMENTATION.md §6for the full recipe.
Quick start
import pandas as pd, numpy as np
df = pd.read_parquet("hf://datasets/t22000t/optcg-en-card-embeddings/cards_with_embeddings.parquet")
# Pack into a (n, d) matrix
matrix = np.stack(df["embedding"].apply(np.asarray).values).astype("float32")
# Top-k nearest neighbors of card index 0 (cosine; vectors pre-normalized)
query = matrix[0]
scores = matrix @ query
top = scores.argsort()[::-1][:10]
print(df.iloc[top][["id", "name", "card_type", "colors"]])
Joining with the cards repo
The two datasets share id as a primary key:
import pandas as pd
cards = pd.read_parquet("hf://datasets/t22000t/optcg-en-cards/cards.parquet")
emb = pd.read_parquet("hf://datasets/t22000t/optcg-en-card-embeddings/cards_with_embeddings.parquet")
joined = cards.merge(emb[["id", "embedding"]], on="id", how="left")
(In practice the embeddings repo carries the full card columns too, so a join is only useful if you want columns this snapshot doesn't duplicate.)
Embedding details
- Model:
Qwen/Qwen3-Embedding-0.6B. - Dim: 1024 (default; configurable via Matryoshka truncation in the source pipeline).
- Normalization: L2 (cosine ≡ dot product).
- Document strategy: prettified JSON of
name,card_type,colors,cost,power,counter,life,attribute,family,effect_text,trigger_text,rarity. The card's own name is substituted with~ineffect_text/trigger_text. - Task instruction: a fixed string prepended to each document
telling the model to optimize for OPTCG mechanic similarity. The
exact string is captured in
provenance.json:embed.task_instructionfor reproducibility.
Reproducing
The full pipeline is open-source. To recompute these embeddings:
pip install 'optcg-cards[embed]'
optcg-cards fetch en
optcg-cards embed en
optcg-cards visualize en
Or to encode a custom query against this dataset:
from sentence_transformers import SentenceTransformer
import json
prov = json.loads(open("provenance.json").read())
model = SentenceTransformer(prov["embed"]["model_id"])
text = prov["embed"]["task_instruction"].format(card_document="your query here")
query_vec = model.encode([text], normalize_embeddings=True)[0]
Provenance
provenance.json ships in this repo. It carries both the fetch
block (which upstream snapshot was used) and the embed block (model,
embedding dim, task instruction, embed timestamp). The instruction is
stored verbatim — you need it to encode queries that are comparable to
the stored vectors.
Intellectual property
This embeddings dataset is a numeric transformation of card-text strings. It does not contain card art. See the sibling cards dataset README for the full IP notice and the takedown contact.
Citation
@misc{optcg_en_card_embeddings,
title = {OPTCG English Card Embeddings},
author = {optcg-cards contributors},
year = {2026},
url = {https://huggingface.co/datasets/t22000t/optcg-en-card-embeddings},
note = {Qwen3-Embedding; sister of t22000t/optcg-en-cards}
}
License
CC BY 4.0. See LICENSE-DATA in the source repository for the full
license text and IP notice.
- Downloads last month
- 19