<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 280">
    <!-- Background -->
    <rect width="600" height="280" fill="#f8f9fa" rx="10" ry="10" />

    <!-- Title -->
    <text x="300" y="35" font-family="Arial, sans-serif" font-size="20" font-weight="bold"
        text-anchor="middle">One-Hot Encoding Visualization</text>

    <!-- Words column -->
    <text x="110" y="75" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">Word</text>
    <rect x="60" y="85" width="100" height="40" fill="#e9ecef" rx="5" ry="5" />
    <rect x="60" y="135" width="100" height="40" fill="#e9ecef" rx="5" ry="5" />
    <rect x="60" y="185" width="100" height="40" fill="#e9ecef" rx="5" ry="5" />

    <text x="110" y="110" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">
        "apple"</text>
    <text x="110" y="160" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">
        "banana"</text>
    <text x="110" y="210" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">
        "cherry"</text>

    <!-- Arrow -->
    <line x1="180" y1="155" x2="230" y2="155" stroke="#495057" stroke-width="2" />
    <polygon points="230,155 220,150 220,160" fill="#495057" />

    <!-- Vector representation column -->
    <text x="410" y="60" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">One-Hot Vector</text>
    <text x="330" y="75" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">apple</text>
    <text x="410" y="75" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">banana</text>
    <text x="490" y="75" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">cherry</text>

    <!-- Vector boxes -->
    <!-- Apple -->
    <rect x="260" y="85" width="300" height="40" fill="#e9ecef" rx="5" ry="5" />
    <line x1="340" y1="85" x2="340" y2="125" stroke="#dee2e6" stroke-width="1" />
    <line x1="420" y1="85" x2="420" y2="125" stroke="#dee2e6" stroke-width="1" />
    <text x="300" y="110" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle" fill="#0d6efd">1</text>
    <text x="380" y="110" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">0</text>
    <text x="460" y="110" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">0</text>
    <text x="520" y="110" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">[1, 0,
        0]</text>

    <!-- Banana -->
    <rect x="260" y="135" width="300" height="40" fill="#e9ecef" rx="5" ry="5" />
    <line x1="340" y1="135" x2="340" y2="175" stroke="#dee2e6" stroke-width="1" />
    <line x1="420" y1="135" x2="420" y2="175" stroke="#dee2e6" stroke-width="1" />
    <text x="300" y="160" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">0</text>
    <text x="380" y="160" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle" fill="#0d6efd">1</text>
    <text x="460" y="160" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">0</text>
    <text x="520" y="160" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">[0, 1,
        0]</text>

    <!-- Cherry -->
    <rect x="260" y="185" width="300" height="40" fill="#e9ecef" rx="5" ry="5" />
    <line x1="340" y1="185" x2="340" y2="225" stroke="#dee2e6" stroke-width="1" />
    <line x1="420" y1="185" x2="420" y2="225" stroke="#dee2e6" stroke-width="1" />
    <text x="300" y="210" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">0</text>
    <text x="380" y="210" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">0</text>
    <text x="460" y="210" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle" fill="#0d6efd">1</text>
    <text x="520" y="210" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">[0, 0,
        1]</text>

    <!-- Caption -->
    <text x="300" y="250" font-family="Arial, sans-serif" font-size="14" text-anchor="middle"
        font-style="italic">Each word is represented by a vector with a single 1 at its position in
        the vocabulary</text>
    <text x="300" y="270" font-family="Arial, sans-serif" font-size="14" text-anchor="middle"
        font-style="italic">and 0s everywhere else.</text>
</svg>