entity-linking / layouts /task_layout.html
davidjurgens's picture
Deploy Potato demo: Potato — Entity Linking
1cd0447 verified
Raw
History Blame Contribute Delete
4.59 kB
<!-- CONFIG_HASH: ca1c9753f67f0d9a375936624289acb9_5acc7999640d964d03f979651fc4b2d9 -->
<!-- Generated annotation layout file -->
<!-- This file was automatically generated based on the annotation schemes in your config -->
<!-- You can customize this file to modify the layout of your annotation interface -->
<!-- Changes to this file will be preserved across server restarts -->
<div class="annotation_schema">
<form id="ner" class="annotation-form span shadcn-span-container" action="javascript:void(0)" data-annotation-id="0" data-entity-linking='{&quot;enabled&quot;: true, &quot;knowledge_bases&quot;: [{&quot;name&quot;: &quot;wikidata&quot;, &quot;type&quot;: &quot;wikidata&quot;, &quot;language&quot;: &quot;en&quot;}], &quot;auto_search&quot;: true, &quot;required&quot;: false, &quot;multi_select&quot;: false}' data-grid-columns="1">
<fieldset schema="ner">
<legend class="shadcn-span-title">Highlight and link named entities to Wikidata</legend>
<div class='entity-linking-hint'>Click the link icon on spans to connect to knowledge base entities</div>
<div class="shadcn-span-options">
<div class="shadcn-span-option">
<input class="ner shadcn-span-checkbox"
for_span="true"
type="checkbox"
id="ner_PERSON"
name="span_label:::ner"
value="PERSON"
onclick="onlyOne(this); changeSpanLabel(this, 'ner', 'PERSON', 'PERSON', '(110, 86, 207)', '');"
data-target-field=""
validation="">
<label for="ner_PERSON" class="shadcn-span-label" data-toggle="tooltip" data-html="true" data-placement="top" title="A person&#x27;s name (e.g., Albert Einstein, Marie Curie)">
<span style="background-color:rgb(110, 86, 207,0.4);">PERSON</span>
</label>
</div>
<div class="shadcn-span-option">
<input class="ner shadcn-span-checkbox"
for_span="true"
type="checkbox"
id="ner_ORGANIZATION"
name="span_label:::ner"
value="ORGANIZATION"
onclick="onlyOne(this); changeSpanLabel(this, 'ner', 'ORGANIZATION', 'ORGANIZATION', '(239, 68, 68)', '');"
data-target-field=""
validation="">
<label for="ner_ORGANIZATION" class="shadcn-span-label" data-toggle="tooltip" data-html="true" data-placement="top" title="An organization name (e.g., NASA, United Nations)">
<span style="background-color:rgb(239, 68, 68,0.4);">ORGANIZATION</span>
</label>
</div>
<div class="shadcn-span-option">
<input class="ner shadcn-span-checkbox"
for_span="true"
type="checkbox"
id="ner_LOCATION"
name="span_label:::ner"
value="LOCATION"
onclick="onlyOne(this); changeSpanLabel(this, 'ner', 'LOCATION', 'LOCATION', '(113, 113, 122)', '');"
data-target-field=""
validation="">
<label for="ner_LOCATION" class="shadcn-span-label" data-toggle="tooltip" data-html="true" data-placement="top" title="A location or place name (e.g., Paris, Mount Everest)">
<span style="background-color:rgb(113, 113, 122,0.4);">LOCATION</span>
</label>
</div>
<div class="shadcn-span-option">
<input class="ner shadcn-span-checkbox"
for_span="true"
type="checkbox"
id="ner_EVENT"
name="span_label:::ner"
value="EVENT"
onclick="onlyOne(this); changeSpanLabel(this, 'ner', 'EVENT', 'EVENT', '(245, 158, 11)', '');"
data-target-field=""
validation="">
<label for="ner_EVENT" class="shadcn-span-label" data-toggle="tooltip" data-html="true" data-placement="top" title="A named event (e.g., World War II, Olympics)">
<span style="background-color:rgb(245, 158, 11,0.4);">EVENT</span>
</label>
</div>
</div></fieldset></form>
</div>