Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-06T08:57:06.806Z Has data issue: false hasContentIssue false

A Semi-automatic and low-cost method to learn patterns for named entity recognition*

Published online by Cambridge University Press:  15 June 2017

M. MARRERO
Affiliation:
Barcelona Supercomputing Center, Carrer de Jordi Girona, 29-31, 08034 Barcelona, Spain e-mail: marrero.monica@gmail.com
J. URBANO
Affiliation:
Delft University of Technology, Mekelweg 4, 2628 CD Delft, The Netherlands e-mail: urbano.julian@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Named Entity Recognition is a basic task in Information Extraction that aims at identifying entities of interest within full text documents. The patterns used to recognize entities can be rule based, as in the popular JAPE system. However, hand-crafting effective patterns is often difficult, and yet there is little research devoted to methods capable of learning human-readable patterns, possibly with arbitrary sets of features. In this paper, we present a semi-automatic method to generate both regular expressions and a subset of the JAPE language. It does not need a corpus annotated beforehand. Instead, it employs active learning and combines clustering with an algorithm that finds alignments between symbols present in the entities discovered during the learning process. The method currently supports a fixed set of character features and an arbitrary set of token features, but it can incorporate other kinds of features as well. Through several experiments with an English corpus, we show the ability of the method to generate effective patterns at a low annotation cost, and how it can successfully help in the annotation of brand new corpora.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2017 
Figure 0

Fig. 1. Sample cascade grammar in JAPE notation. Each phase represents a finite state transducer, whose input alphabet is specified after Input. Each rule contains a left-hand side with a pattern, the separator –>, and a right-hand side with an action. The text matched by the pattern can be identified with a label (e.g. :pname), which is used in the action to add certain annotations to that specific string. In the above example, the first phase recognizes person first names, made up of a token with morphosyntactic category NNP, whose initial character is A (==~ indicates that the right-hand side is a regular expression), and is also included in the person_first gazetteer. The text matched by this pattern is annotated as Person.type=”first”. The second phase uses these annotations to recognize first names that are preceded by a token matching the regular expression Dr\\.?, and annotates them as Person.title=”doctor”.

Figure 1

Fig. 2. Sample application of the pattern learning method to recognize times in italic font: (a) the set of initial seeds e1 and e2, (b) their character feature matrices $A^\mathcal {C}_i$ and their token feature matrices $A^\mathcal {T}_i$ (see Section 3.3), (c) the learned pattern matrices $B^\mathcal {C}_i$ and $B^\mathcal {T}_i$ for each feature matrix, containing the fixed rules (see Section 3.4), and (d) the final JAPE pattern generated from the pattern matrices (see Section 4.3).

Figure 2

Table 1. Custom groups of Unicode categories in the third character feature

Figure 3

Table 2. Number of entities in the 300 documents of the jobs postings corpus

Figure 4

Table 3. Parameters configured for evaluation of the learning method

Figure 5

Table 4. Effectiveness and annotation cost (mean±95 per cent CI) per entity type of the JAPE patterns learned by RB-AL

Figure 6

Fig. 3. Mean F-score by total cost (sum over all entity types) of Li et al.’s method (SVM-AL), Gupta and Manning’s method (BOOT) and ours (RB-AL). Circles mark the means with 2, 5, 10, 20, 50 and 100 initial seeds, respectively. On left, 0 to 90,000 tokens. On right, 0 to 20,000 tokens (log-scaled), expanded to show detail of BOOT.

Figure 7

Table 5. Effectiveness and cost (mean±95 per cent CI) when annotating an entity type in a new corpus using RB-AL

Figure 8

Fig. 4. Mean recall by false positives when annotating an entity type in a new corpus. Circles mark the means with different seed set sizes.

Figure 9

Table 6. Entities used as external seeds in the third experiment; none of them are found in the corpus. Entities in the last two columns do not correspond to the same pattern as the entities in the corpus (e.g. months in post date entities always contain three letters, the first one in uppercase)

Figure 10

Table 7. Effectiveness and annotation cost (mean±95 per cent CI) of RB-AL when generating regular expressions from internal and external seeds

Figure 11

Fig. 5. Distributions of F-scores for each entity type and number of initial seeds. Entities are sorted by mean F-scored, marked with crosses.

Figure 12

Fig. 6. Distributions of calls to the ActiveLearning procedure per feature, for each entity type and number of initial seeds. Entities are sorted by mean number of calls, marked with crosses.

Figure 13

Fig. 7. Distributions of potential rules fixed during an active learning iteration (top), and iterations where at least a new entity was discovered (bottom), for each entity type and number of initial seeds. Entities are sorted by mean percentage, marked with crosses.