Back to Label Studio

HTML Entity Recognition

docs/source/templates/html_document.md

2.2.10-11.2 KB
Original Source

Perform named entity recognition for HTML documents. Use this template to display text with HTML markup and label spans.

<!--Removing interactive template because it doesn't work due to the outdated version of LSF in playground-->

Labeling Configuration

html
<View>
  <Labels name="ner" toName="text">
    <Label value="Person"></Label>
    <Label value="Organization"></Label>
  </Labels>
  <HyperText name="text" value="$text"></HyperText>
</View>

About the labeling configuration

All labeling configurations must be wrapped in View tags.

Use the Labels control tag to specify the entities that you want annotators to annotate on the HTML document:

xml
<Labels name="ner" toName="text">
    <Label value="Person"></Label>
    <Label value="Organization"></Label>
</Labels>

Use the HyperText object tag to display the text containing HTML markup:

xml
<HyperText name="text" value="$text"></HyperText>