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

    <!-- Title -->
    <text x="350" y="35" font-family="Arial, sans-serif" font-size="20" font-weight="bold"
        text-anchor="middle">Distributed Representation (Word Embeddings)</text>

    <!-- Left side: Vector representations -->
    <text x="160" y="75" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">Dense Vector Representation</text>

    <!-- Vector header -->
    <text x="70" y="105" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">Word</text>
    <text x="160" y="105" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">Dim 1</text>
    <text x="220" y="105" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">Dim 2</text>
    <text x="280" y="105" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">Dim 3</text>

    <!-- King -->
    <rect x="20" y="115" width="100" height="30" fill="#e9ecef" rx="5" ry="5" />
    <text x="70" y="135" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">"king"</text>

    <rect x="130" y="115" width="60" height="30" fill="#cfe2ff" rx="5" ry="5" />
    <text x="160" y="135" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.25</text>

    <rect x="190" y="115" width="60" height="30" fill="#d1e7dd" rx="5" ry="5" />
    <text x="220" y="135" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.80</text>

    <rect x="250" y="115" width="60" height="30" fill="#f8d7da" rx="5" ry="5" />
    <text x="280" y="135" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.45</text>

    <!-- Queen -->
    <rect x="20" y="155" width="100" height="30" fill="#e9ecef" rx="5" ry="5" />
    <text x="70" y="175" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">"queen"</text>

    <rect x="130" y="155" width="60" height="30" fill="#cfe2ff" rx="5" ry="5" />
    <text x="160" y="175" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.30</text>

    <rect x="190" y="155" width="60" height="30" fill="#d1e7dd" rx="5" ry="5" />
    <text x="220" y="175" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.85</text>

    <rect x="250" y="155" width="60" height="30" fill="#f8d7da" rx="5" ry="5" />
    <text x="280" y="175" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.50</text>

    <!-- Apple -->
    <rect x="20" y="195" width="100" height="30" fill="#e9ecef" rx="5" ry="5" />
    <text x="70" y="215" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">"apple"</text>

    <rect x="130" y="195" width="60" height="30" fill="#cfe2ff" rx="5" ry="5" />
    <text x="160" y="215" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.60</text>

    <rect x="190" y="195" width="60" height="30" fill="#d1e7dd" rx="5" ry="5" />
    <text x="220" y="215" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.10</text>

    <rect x="250" y="195" width="60" height="30" fill="#f8d7da" rx="5" ry="5" />
    <text x="280" y="215" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.70</text>

    <!-- Banana -->
    <rect x="20" y="235" width="100" height="30" fill="#e9ecef" rx="5" ry="5" />
    <text x="70" y="255" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">
        "banana"</text>

    <rect x="130" y="235" width="60" height="30" fill="#cfe2ff" rx="5" ry="5" />
    <text x="160" y="255" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.55</text>

    <rect x="190" y="235" width="60" height="30" fill="#d1e7dd" rx="5" ry="5" />
    <text x="220" y="255" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.15</text>

    <rect x="250" y="235" width="60" height="30" fill="#f8d7da" rx="5" ry="5" />
    <text x="280" y="255" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">0.75</text>

    <!-- Arrow -->
    <line x1="350" y1="175" x2="390" y2="175" stroke="#495057" stroke-width="2" />
    <polygon points="390,175 380,170 380,180" fill="#495057" />

    <!-- Right side: 3D visualization -->
    <text x="540" y="65" font-family="Arial, sans-serif" font-size="16" font-weight="bold"
        text-anchor="middle">3D Embedding Space</text>
    <rect x="400" y="75" width="280" height="260" fill="#ffffff" stroke="#dee2e6" stroke-width="2"
        rx="5" ry="5" />

    <!-- 3D Cube for better perspective -->
    <!-- Front face -->
    <line x1="460" y1="250" x2="580" y2="250" stroke="#adb5bd" stroke-width="1.5" />
    <line x1="460" y1="250" x2="460" y2="130" stroke="#adb5bd" stroke-width="1.5" />
    <line x1="460" y1="130" x2="580" y2="130" stroke="#adb5bd" stroke-width="1.5" />
    <line x1="580" y1="250" x2="580" y2="130" stroke="#adb5bd" stroke-width="1.5" />

    <!-- Back face (with dashed lines for hidden edges) -->
    <line x1="510" y1="200" x2="630" y2="200" stroke="#adb5bd" stroke-width="1"
        stroke-dasharray="3,2" />
    <line x1="510" y1="200" x2="510" y2="80" stroke="#adb5bd" stroke-width="1"
        stroke-dasharray="3,2" />
    <line x1="510" y1="80" x2="630" y2="80" stroke="#adb5bd" stroke-width="1" />
    <line x1="630" y1="200" x2="630" y2="80" stroke="#adb5bd" stroke-width="1" />

    <!-- Connecting edges -->
    <line x1="460" y1="250" x2="510" y2="200" stroke="#adb5bd" stroke-width="1.5" />
    <line x1="580" y1="250" x2="630" y2="200" stroke="#adb5bd" stroke-width="1.5" />
    <line x1="460" y1="130" x2="510" y2="80" stroke="#adb5bd" stroke-width="1.5" />
    <line x1="580" y1="130" x2="630" y2="80" stroke="#adb5bd" stroke-width="1.5" />

    <!-- Axis labels -->
    <text x="525" y="265" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">Dim 1</text>
    <text x="445" y="190" font-family="Arial, sans-serif" font-size="12" text-anchor="end">Dim 2</text>
    <text x="520" y="90" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">Dim 3</text>

    <!-- Axis arrows -->
    <polygon points="580,250 575,245 575,255" fill="#adb5bd" />
    <polygon points="460,130 455,135 465,135" fill="#adb5bd" />
    <polygon points="580,130 575,125 575,135" fill="#adb5bd" />

    <!-- Plot the points with shadows for 3D effect -->
    <!-- king point -->
    <circle cx="495" cy="165" r="2" fill="#000000" fill-opacity="0.2" />
    <circle cx="490" cy="170" r="6" fill="#4361ee" />
    <text x="490" y="160" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">king</text>

    <!-- queen point -->
    <circle cx="500" cy="160" r="2" fill="#000000" fill-opacity="0.2" />
    <circle cx="495" cy="165" r="6" fill="#4361ee" />
    <text x="495" y="155" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">queen</text>

    <!-- apple point -->
    <circle cx="565" cy="205" r="2" fill="#000000" fill-opacity="0.2" />
    <circle cx="560" cy="210" r="6" fill="#e63946" />
    <text x="560" y="200" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">apple</text>

    <!-- banana point -->
    <circle cx="560" cy="210" r="2" fill="#000000" fill-opacity="0.2" />
    <circle cx="555" cy="215" r="6" fill="#e63946" />
    <text x="555" y="205" font-family="Arial, sans-serif" font-size="12" text-anchor="middle">banana</text>

    <!-- Clustering visualization with 3D effect -->
    <ellipse cx="493" cy="167" rx="15" ry="10" fill="none" stroke="#4361ee" stroke-width="1"
        stroke-dasharray="5,3" />
    <ellipse cx="557" cy="213" rx="15" ry="10" fill="none" stroke="#e63946" stroke-width="1"
        stroke-dasharray="5,3" />

    <!-- Annotations -->
    <text x="590" y="167" font-family="Arial, sans-serif" font-size="12" text-anchor="start">Royalty
        cluster</text>
    <line x1="507" y1="167" x2="575" y2="167" stroke="#4361ee" stroke-width="1"
        stroke-dasharray="3,2" />

    <text x="590" y="210" font-family="Arial, sans-serif" font-size="12" text-anchor="start">Fruit
        cluster</text>
    <line x1="570" y1="210" x2="575" y2="210" stroke="#e63946" stroke-width="1"
        stroke-dasharray="3,2" />

    <!-- Bottom legends and explanations -->
    <text x="350" y="350" font-family="Arial, sans-serif" font-size="14" font-weight="bold"
        text-anchor="middle">Key Properties of Distributed Representations:</text>
    <text x="350" y="375" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">•
        Similar words cluster together in the embedding space</text>
    <text x="350" y="395" font-family="Arial, sans-serif" font-size="14" text-anchor="middle">• Each
        dimension contributes to multiple semantic concepts</text>
</svg>