spaCy/website/docs/images/displacy-model-rules.svg

46 lines
2.7 KiB
XML
Raw Normal View History

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="800-0" class="displacy" width="650" height="180" style="max-width: none; color: #000000; background: #ffffff; font-family: Arial">
<text class="displacy-token" fill="currentColor" text-anchor="middle" y="122.0">
<tspan class="displacy-word" fill="currentColor" x="50">Alex Smith</tspan>
<tspan class="displacy-tag" dy="2em" fill="currentColor" x="50">NNP</tspan>
</text>
<text class="displacy-token" fill="currentColor" text-anchor="middle" y="122.0">
<tspan class="displacy-word" fill="currentColor" x="200">worked</tspan>
<tspan class="displacy-tag" dy="2em" fill="currentColor" x="200">VBD</tspan>
</text>
<text class="displacy-token" fill="currentColor" text-anchor="middle" y="122.0">
<tspan class="displacy-word" fill="currentColor" x="350">at</tspan>
<tspan class="displacy-tag" dy="2em" fill="currentColor" x="350">IN</tspan>
</text>
<text class="displacy-token" fill="currentColor" text-anchor="middle" y="122.0">
<tspan class="displacy-word" fill="currentColor" x="500">Acme Corp Inc.</tspan>
<tspan class="displacy-tag" dy="2em" fill="currentColor" x="500">NNP</tspan>
</text>
<g class="displacy-arrow">
<path class="displacy-arc" id="arrow-800-0-0" stroke-width="2px" d="M70,77.0 C70,2.0 200.0,2.0 200.0,77.0" fill="none" stroke="currentColor"/>
<text dy="1.25em" style="font-size: 0.8em; letter-spacing: 1px">
<textPath xlink:href="#arrow-800-0-0" class="displacy-label" startOffset="50%" fill="currentColor" text-anchor="middle">nsubj</textPath>
</text>
<path class="displacy-arrowhead" d="M70,79.0 L62,67.0 78,67.0" fill="currentColor"/>
</g>
<g class="displacy-arrow">
<path class="displacy-arc" id="arrow-800-0-1" stroke-width="2px" d="M220,77.0 C220,2.0 350.0,2.0 350.0,77.0" fill="none" stroke="currentColor"/>
<text dy="1.25em" style="font-size: 0.8em; letter-spacing: 1px">
<textPath xlink:href="#arrow-800-0-1" class="displacy-label" startOffset="50%" fill="currentColor" text-anchor="middle">prep</textPath>
</text>
<path class="displacy-arrowhead" d="M350.0,79.0 L358.0,67.0 342.0,67.0" fill="currentColor"/>
</g>
<g class="displacy-arrow">
<path class="displacy-arc" id="arrow-800-0-2" stroke-width="2px" d="M370,77.0 C370,2.0 500.0,2.0 500.0,77.0" fill="none" stroke="currentColor"/>
<text dy="1.25em" style="font-size: 0.8em; letter-spacing: 1px">
<textPath xlink:href="#arrow-800-0-2" class="displacy-label" startOffset="50%" fill="currentColor" text-anchor="middle">pobj</textPath>
</text>
<path class="displacy-arrowhead" d="M500.0,79.0 L508.0,67.0 492.0,67.0" fill="currentColor"/>
</g>
</svg>