编辑 | blame | 历史 | 原始文档

---
title: HTML Entity Recognition
type: templates
category: Structured Data Parsing
cat: structured-data-parsing
order: 515
meta_title: HTML Entity Resolution Data Labeling Template

meta_description: Template for performing HTML document entity resolution with Label Studio for your machine learning and data science projects.


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

Labeling Configuration

<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>

Related tags