Dataset Viewer
Auto-converted to Parquet Duplicate
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-006_r1
EB01-006_r1
Tony Tony.Chopper
SuperRare
Character
[ "Red" ]
3
4,000
1,000
null
['Strike']
Type Animal/Straw Hat Crew
[ "Type 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
ONE PIECE CARD THE BEST
en
false
true
false
false
false
false
true
false
false
false
null
null
null
null
null
null
false
true
[ "Blocker", "DON!! x2" ]
[]
[ 0.07283339649438858, -0.035056740045547485, -0.008273088373243809, -0.02387484721839428, 0.006384255364537239, -0.0006469252402894199, -0.031127965077757835, 0.000731922744307667, 0.04986518993973732, 0.0743444636464119, -0.007215341553092003, 0.0006847018958069384, 0.030372433364391327, -...
20.005692
-7.430934
OP01-006_p3
OP01-006_p3
Otama
Uncommon
Character
[ "Red" ]
1
null
2,000
null
['Special']
Type Land of Wano
[ "Type Land of Wano" ]
[On Play] Give up to 1 of your opponent's Characters −2000 power during this turn.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
true
false
false
false
false
false
null
null
null
null
null
null
false
true
[]
[]
[ 0.013509861193597317, -0.022442610934376717, -0.005463004112243652, -0.0646701529622078, -0.036616891622543335, -0.01299309078603983, 0.023033205419778824, -0.01491252426058054, 0.01963728480041027, 0.03440215811133385, -0.028939155861735344, 0.016389012336730957, 0.016905782744288445, -0....
4.359359
4.699686
OP01-006_p4
OP01-006_p4
Otama
Uncommon
Character
[ "Red" ]
1
null
2,000
null
['Special']
Type Land of Wano
[ "Type Land of Wano" ]
[On Play] Give up to 1 of your opponent's Characters −2000 power during this turn.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
true
false
false
false
false
false
null
null
null
null
null
null
false
true
[]
[]
[ 0.013509861193597317, -0.022442610934376717, -0.005463004112243652, -0.0646701529622078, -0.036616891622543335, -0.01299309078603983, 0.023033205419778824, -0.01491252426058054, 0.01963728480041027, 0.03440215811133385, -0.028939155861735344, 0.016389012336730957, 0.016905782744288445, -0....
4.38337
4.708875
OP01-006_p5
OP01-006_p5
Otama
Uncommon
Character
[ "Red" ]
1
null
2,000
null
['Special']
Type Land of Wano
[ "Type Land of Wano" ]
[On Play] Give up to 1 of your opponent's Characters −2000 power during this turn.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
true
false
false
false
false
false
null
null
null
null
null
null
false
true
[]
[]
[ 0.013509861193597317, -0.022442610934376717, -0.005463004112243652, -0.0646701529622078, -0.036616891622543335, -0.01299309078603983, 0.023033205419778824, -0.01491252426058054, 0.01963728480041027, 0.03440215811133385, -0.028939155861735344, 0.016389012336730957, 0.016905782744288445, -0....
4.348871
4.706797
OP01-006_r1
OP01-006_r1
Otama
Uncommon
Character
[ "Red" ]
1
null
2,000
null
['Special']
Type Land of Wano
[ "Type Land of Wano" ]
[On Play] Give up to 1 of your opponent's Characters −2000 power during this turn.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
true
false
false
false
false
false
null
null
null
null
null
null
false
true
[]
[]
[ 0.013509861193597317, -0.022442610934376717, -0.005463004112243652, -0.0646701529622078, -0.036616891622543335, -0.01299309078603983, 0.023033205419778824, -0.01491252426058054, 0.01963728480041027, 0.03440215811133385, -0.028939155861735344, 0.016389012336730957, 0.016905782744288445, -0....
4.371575
4.709823
OP01-016_p8
OP01-016_p8
Nami
Rare
Character
[ "Red" ]
1
2,000
1,000
null
['Special']
Type Straw Hat Crew
[ "Type Straw Hat Crew" ]
[On Play] Look at 5 cards from the top of your deck; reveal up to 1 {Straw Hat Crew} type card other than [Nami] and add it to your hand. Then, place the rest at the bottom of your deck in any order.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
true
false
false
false
false
false
null
null
null
null
null
null
false
false
[ "Nami" ]
[]
[ 0.01086749229580164, -0.01937909424304962, -0.00885358639061451, -0.054109469056129456, -0.06049317121505737, -0.02067103423178196, 0.0419500395655632, -0.029942600056529045, 0.008093621581792831, 0.03602231666445732, -0.026446763426065445, -0.006497696507722139, 0.02553480677306652, -0.00...
10.553026
8.117194
OP01-024_p3
OP01-024_p3
Monkey.D.Luffy
SuperRare
Character
[ "Red" ]
2
3,000
1,000
null
['Strike']
Type Supernovas/Straw Hat Crew
[ "Type Supernovas", "Straw Hat Crew" ]
[DON!! x2] This Character cannot be K.O.'d in battle by attribute Characters. [Activate: Main] [Once Per Turn] Give this Character up to 2 rested DON!! cards.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
false
false
false
false
true
false
null
null
null
null
null
null
false
false
[ "DON!! x2", "Once Per Turn" ]
[]
[ 0.0323808416724205, -0.021587228402495384, -0.008095210418105125, -0.04872545972466469, 0.011718781664967537, -0.01811785250902176, -0.025596285238862038, 0.019736895337700844, 0.02312917448580265, 0.032226648181676865, -0.026675647124648094, -0.022512396797537804, 0.005551001522690058, -0...
-1.956881
8.820114
OP01-024_r1
OP01-024_r1
Monkey.D.Luffy
SuperRare
Character
[ "Red" ]
2
3,000
1,000
null
['Strike']
Type Supernovas/Straw Hat Crew
[ "Type Supernovas", "Straw Hat Crew" ]
[DON!! x2] This Character cannot be K.O.'d in battle by attribute Characters. [Activate: Main] [Once Per Turn] Give this Character up to 2 rested DON!! cards.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
false
false
false
false
true
false
null
null
null
null
null
null
false
false
[ "DON!! x2", "Once Per Turn" ]
[]
[ 0.0323808416724205, -0.021587228402495384, -0.008095210418105125, -0.04872545972466469, 0.011718781664967537, -0.01811785250902176, -0.025596285238862038, 0.019736895337700844, 0.02312917448580265, 0.032226648181676865, -0.026675647124648094, -0.022512396797537804, 0.005551001522690058, -0...
-1.977739
8.82247
OP01-029_p2
OP01-029_p2
Radical Beam!!
Uncommon
Event
[ "Red" ]
1
null
null
null
[]
Type Straw Hat Crew
[ "Type Straw Hat Crew" ]
"[Counter] Up to 1 of your Leader or Character cards gains +2000 power during this battle. Then, if (...TRUNCATED)
Trigger [Trigger] Up to 1 of your Leader or Character cards gains +1000 power during this turn.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
false
false
false
false
false
true
null
null
null
null
null
null
true
false
[]
[ "Trigger [Trigger] Up to 1 of your Leader or Character cards gains +1000 power during this turn." ]
[0.022686438634991646,-0.04448321461677551,-0.007562146056443453,-0.012603577226400375,-0.0116397738(...TRUNCATED)
5.703942
8.989919
OP01-029_p3
OP01-029_p3
Radical Beam!!
Uncommon
Event
[ "Red" ]
1
null
null
null
[]
Type Straw Hat Crew
[ "Type Straw Hat Crew" ]
"[Counter] Up to 1 of your Leader or Character cards gains +2000 power during this battle. Then, if (...TRUNCATED)
Trigger [Trigger] Up to 1 of your Leader or Character cards gains +1000 power during this turn.
OP01
OP01
ONE PIECE CARD THE BEST
en
false
false
false
false
false
false
false
false
false
true
null
null
null
null
null
null
true
false
[]
[ "Trigger [Trigger] Up to 1 of your Leader or Character cards gains +1000 power during this turn." ]
[0.022686438634991646,-0.04448321461677551,-0.007562146056443453,-0.012603577226400375,-0.0116397738(...TRUNCATED)
5.691443
8.995403
End of preview. Expand in Data Studio

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 §6 for 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 ~ in effect_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_instruction for 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
88

Spaces using t22000t/optcg-en-card-embeddings 2

Article mentioning t22000t/optcg-en-card-embeddings