File size: 1,538 Bytes
a7060a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
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.
---

<br/><img src="/images/templates/html-entity-recognition.png" alt="" class="gif-border" width="552px" height="408px" />

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/view.html) tags.

Use the [Labels](/tags/labels.html) 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](/tags/hypertext.html) object tag to display the text containing HTML markup:
```xml
<HyperText name="text" value="$text"></HyperText>
```

## Related tags

- [Labels](/tags/labels.html)
- [HyperText](/tags/hypertext.html)