---
title: "On Named Entity Recognition in Targeted Twitter Streams in"
description: "A study of how a news-trained name recognizer finds people, places and organizations in Polish tweets using spelling similarity and recurrence."
canonical: "https://research.elamur.ai/free/en/papers/piskorski-2013-named-entity-recognition-targeted-twitter/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/piskorski-2013-named-entity-recognition-targeted-twitter/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2013](https://md.research.elamur.ai/free/en/papers/2013/) / On Named Entity Recognition in Targeted Twitter Streams in Polish.

# On Named Entity Recognition in Targeted Twitter Streams in Polish.

Paper · 2013 · Jakub Piskorski and Maud Ehrmann

**Authors:** [Jakub Piskorski](https://md.research.elamur.ai/free/en/authors/jakub-piskorski/) and [Maud Ehrmann](https://md.research.elamur.ai/free/en/authors/maud-ehrmann/) · **Year:** 2013 · **Venue:** Proceedings of the 4th Biennial International Workshop on Balto-Slavic Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

Proceedings of the 4th Biennial International Workshop on Balto-Slavic Natural Language Processing · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/W13-2413/)
- [PDF](https://aclanthology.org/W13-2413.pdf)

## Summary

A person’s name can appear in one tweet as a full name, in another as a surname with a different grammatical ending, and in a third as part of a string with a missing space. An organization can acquire several abbreviations in the course of the same conversation. Piskorski and Ehrmann ask how much of this variation a recognizer built for Polish online news can recover when given access to a collection of tweets on a particular subject. The task is to find the words or characters that make up a mention and, where the system can, decide whether it refers to a person, a location or an organization. This is [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

The authors simplify an existing rule-based recognizer and add two ways to find mentions that its rules miss. The first takes names the grammar has already found and looks for similar spellings elsewhere in the collection. The second looks for families of similar expressions that recur in the collection, even when the grammar has found no member of the family. A Polish dictionary helps filter out families made up mostly of ordinary word forms. The grammar assigns entity types, while the clustering procedure proposes spans without types.

The evaluation covers collections about the Boston marathon bombings, Donald Tusk, Antoni Macierewicz and Cezary Gmyz, plus a collection of random Polish tweets. Across the four targeted collections, the grammar alone has an average exact-match F-measure of 67%. The strongest combined setting reaches 77.9% under exact matching and 86.2% under a more permissive rule that allows one boundary of a mention to differ. These combined scores concern detection. Exact-match recall rises from 56.3% to 72.2%, while precision moves from 87.3% to 84.5%.

The effects vary with the conversation. Matching new spellings of names that the grammar already knows makes a particularly large difference in the Gmyz collection. Clustering recovers some mentions joined to adjacent text, and it can also return the extra characters as part of the name. The same experiment therefore shows both the value of using the surrounding collection and the difficulty of deciding exactly where a recovered name begins and ends.

## Deep dive: On Named Entity Recognition in Targeted Twitter Streams in Polish.

A study of how a news-trained name recognizer finds people, places and organizations in Polish tweets using spelling similarity and recurrence. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A name can outlast the clues around it

The paper starts from a monitoring problem. An organization following an event or public figure wants to locate the relevant people, places and organizations in the messages it collects. The volume of Twitter motivates collecting messages that meet a particular information need. A query about an attack in Boston, for instance, brings together messages likely to repeat some of the same names. The resulting stream has enough coherence to be useful as a source of evidence in its own right.

Finding a name involves two decisions. The first is to find its span, the portion of the message occupied by the mention. The second is to assign its type. In news, a title or job description can help with both. A title next to a name suggests a person, and the wording around a capitalized expression can make a city reading more plausible. Information inside a name can also help. A company designator, for example, can distinguish an organization from another kind of entity with a similar-looking name.

Tweets frequently offer less of this evidence. A contributor who assumes readers know the story can use a surname on its own. Abbreviated names leave less material for a pattern to recognize. Missing spaces can join a name to a title, while punctuation and capitalization can appear in places where rules designed for formal text would have little reason to expect them. A misspelling can make a familiar name unfamiliar to a dictionary lookup. Each change affects a somewhat different part of the task. A fused name presents a boundary problem, a shortened form can remove evidence for its type, and a changed spelling can interfere with recognizing a known string at all.

The paper also identifies a challenge specific to its language. Polish permits relatively free word order and has extensive inflection. Proper names can have a complex set of forms across grammatical cases. Some of the variation a system encounters is therefore a regular consequence of using a name in a sentence. Other variation comes from the informal practices of the people writing the tweets. For a recognizer comparing characters, both appear initially as changes to a string. The authors’ question is whether that shared representation can be useful even when the reasons for the changes differ.

The name of the newspaper Rzeczpospolita illustrates the distinction. Rzeczpospolitej is a grammatical form of that name. The stream also contains shorter forms such as Rzepa and RP. A technique that recognizes a shared stretch of letters has a plausible route from the full name to the inflected one. It faces a different problem when an abbreviation preserves very few letters or changes the shape of the word. The paper explores several ways of deciding which resemblances to trust because the form of the variation matters as much as its amount.

#### What earlier systems used as evidence

The earlier Polish work described by the authors gave them a starting point in well-formed text. It included a rule-based system for familiar categories such as people, locations and organizations, along with numerical and temporal expressions. Another rule-based recognizer, NERT, addressed a similar range of categories. Dictionaries of Warsaw proper names supplied another kind of resource. Such dictionaries make known spellings and names available to a recognizer, to the extent that the relevant names and forms have been collected.

The authors also point to research on extracting events from Polish stockholder reports. That work used memory-based learning in one approach and a probabilistic sequence method in another. Related Polish research considered general-purpose [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/) as well as named entity recognition based on conditional random fields. These examples establish that Polish name recognition already had several methodological traditions. The open question for the authors was how a system from one of those traditions would fare after a move into informal, topic-specific messages.

Earlier Twitter research cited in the paper focused largely on English. One approach used a support vector classifier for people, locations and organizations. Another handled a broader set of types and separated the discovery of mention spans from their classification. It used conditional random fields for finding spans, drawing on shallow parsing and [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), and used labeled latent Dirichlet allocation to assign categories. This division made the discovery of a span and the choice of its type distinct operations. [Named Entity Recognition in Tweets](https://md.research.elamur.ai/free/en/papers/ritter-2011-named-entity-recognition-tweets-experimental/)

A separate study combined a nearest-neighbor approach with conditional random fields for the span and classification problems. In the account given by Piskorski and Ehrmann, precision and recall in prior Twitter work generally fell around 50-80%, below the figures associated with work on well-formed text. This is the paper’s description of the field at the time. The studies differed in what they sought to find and how they gathered their messages. [Recognizing Named Entities in Tweets](https://md.research.elamur.ai/free/en/papers/liu-2011-recognizing-named-entities-tweets/)

Other studies in the paper’s account brought in additional kinds of evidence. A rule-based approach consulted an external entity knowledge base to resolve category ambiguity. Work on joint recognition and normalization considered whether identifying a mention and deciding its normalized form together could improve those decisions. Research on disambiguation explored an expectation-maximization procedure. The paper presents these as different responses to the difficulty of interpreting short messages.

Targeted collections also had precedents. The authors cite work on identifying people in tweets about live sports, as well as an unsupervised system that gathered information from the web to extract names from targeted Twitter streams. The latter addressed detection without classifying the names. That earlier work makes clear why the collection itself matters to the research question. A set of messages about a specific event can repeatedly refer to the same small set of people or organizations, giving a system a chance to use evidence scattered across separate messages.

#### Why reuse a news grammar

Piskorski and Ehrmann present supervised learning as difficult to deploy in a medium where the names and subjects of interest change. They investigate an alternative that starts with the rules and vocabulary already available for Polish news. The identity of a topic’s current participants can then come partly from the collected messages. This allows the authors to study adaptation through a recognizer they can change in stages, beginning with the grammar and adding separate procedures for recovering variants and guessing names.

The study rests on a distinction between recognizing a name once and recognizing all of its mentions. In a targeted collection, a clear occurrence can give the grammar an entry point. Another message can use a form that the grammar would miss in isolation. Still another family of names may have no clear occurrence for the rules to start from. The authors give these cases different treatments. Their matching step extends evidence from a recognized name, while clustering tries to discover related forms directly from the descriptions circulating in the stream.

### The method, step by step

#### Recognize the names supported by rules

The starting recognizer uses a cascade of finite-state grammars written in ExPRESS. A cascade passes discoveries from simpler patterns to patterns that depend on them. A lower-level grammar can mark a piece of text as a possible surname. A later grammar can combine that candidate with evidence for a first name and an initial. The full rule can therefore work with units already identified by an earlier pass.

The example in the paper begins with a first name found in a gazetteer, a list of names and associated information. It can accept an initial found through another lookup. It then requires a surname candidate supplied by the lower-level grammar. An expression built this way becomes a person mention. The output keeps the spelling of the parts that actually matched, with spaces joining them. The optional initial lets the rule handle both forms of the construction.

In the following restatement of that rule, the symbols describe the pieces of the input and how the name is assembled.

```
N = join(F, I, L)
```

`N` is the text of the output person name. `F` is the first name, `I` is the initial when present, and `L` is the surname candidate. The operation `join` inserts spaces between the parts that matched. The equals sign assigns the resulting text to `N`. The rule’s category decision follows from the pattern that fired.

This example uses evidence from inside the name. Other patterns can use evidence next to it, such as a person’s title or position. The inventory contains 15 patterns for people and 10 each for locations and organizations. Its gazetteer has approximately 294K entries, including 39K inflected first-name forms from Polish and foreign names and 86K inflected surname forms. It includes 5K organization names with partial coverage of inflected forms and 10K inflected location names.

The grammar can therefore recognize many case forms through their entries. Its use of morphology depends mainly on the information already represented in those entries. A small share of patterns makes use of encoded morphological information, and the recognizer operates without a separate analyzer assigning grammatical readings to Polish tokens. The resource and the rules do different jobs. The resource says which forms it knows, while a rule specifies the combination of forms or contextual clues that licenses a mention.

The news system distinguished more dependable patterns from patterns based on a weaker cue such as a first-name lookup. In a tweet, the weaker pattern may be the only one that can fire because a person is mentioned by a single token. The adapted grammar drops this distinction and accepts output from both kinds of rule. It also drops the production of dictionary forms and the extraction of attributes such as titles and positions. The resulting baseline, BASE, returns a mention and its type.

Removing those output attributes leaves the rules free to use relevant clues when the text supplies them. A title, for instance, can still help a recognizer identify a mention even when the title is outside the output span. This distinction also matters for the evaluation. The annotations exclude titles and functions, so a system that uses such a cue needs to keep it out of the span it returns.

#### Extend a recognized name to similar forms

Once BASE has run, a second pass looks for additional mentions of the names it recognized. The paper calls this family of procedures MATCH, with a suffix for the string measure in use. A related form may occur in another message anywhere in the same collection. The operation starts from the grammar’s output and needs an anchor that looks enough like the candidate.

The authors give examples with different kinds of change. The letters in Donlad Tusk preserve most of Donald Tusk, with a pair appearing in the opposite order. In prezydentKomorowski, the surname is visible inside a longer string because a space is absent. A declined newspaper name retains a substantial part of its nominative spelling while changing its ending. A scoring procedure that tolerates changes in character positions or length has more ways to associate these forms than a search for the original spelling alone.

The procedure works with characters even though the things being proposed are spans of words or parts of messages. A character measure quantifies how much material two strings share or how much editing it would take to turn one into the other. Choosing a measure is consequential because it determines which irregularities the system handles cheaply. The paper compares several measures instead of treating spelling resemblance as a single fixed quantity.

Levenshtein distance counts the minimum number of character insertions, deletions and substitutions needed to transform one string into the other. Smith–Waterman uses an alignment in which gaps and substitutions can be assigned different costs. The authors use a version of its score scaled by the average length of the strings in the Dice normalization they describe. These measures give the authors ways to compare spelling changes that affect the amount and alignment of the visible material.

#### Score common characters, prefixes and substrings

Jaro similarity starts by limiting how far a character is allowed to move to count as a match. A letter in one string can match an identical letter in the other if their positions fall within a window. This makes two nearby occurrences comparable while restricting matches between letters far apart in the respective spellings. The window radius is defined as follows.

```
R = ⌊max(|s|, |t|) / 2⌋ − 1
```

`s` and `t` are the strings being compared, and the vertical bars specify their character lengths. `max` takes the larger length. The floor brackets round down to an integer. Division by `2` followed by subtraction of `1` yields `R`, the permitted displacement in character positions.

The window determines whether characters at particular positions can be treated as common.

```
i − R ≤ j ≤ i + R
```

`i` is the position of a character in `s`, and `j` is the position of an identical character in `t`. `R` is the radius just defined. The two inequalities put `j` between the lower position `i − R` and the upper position `i + R`, including both endpoints.

The next step collects the characters of each string that count as common, retaining their original order. The score takes account of how much of each string is shared and how similar the order of the shared characters is.

```
J(s, t) = (|s′| / |s| + |t′| / |t| + (|s′| − ⌊T/2⌋) / |s′|) / 3
```

`J` is the Jaro similarity of `s` and `t`. The strings `s′` and `t′` consist of their matched characters in occurrence order. The first two ratios measure the share of each original string that counts as common. `T` counts corresponding positions at which the ordered lists of common characters disagree. The formula halves `T` and rounds it down before subtracting it from `|s′|`. The final division by `3` averages the contributions of the three terms.

The Winkler variant then rewards an agreeing start. It uses a capped count of the characters in the common prefix.

```
boostₚ(s, t) = min(|lcp(s, t)|, p)
```

`boostₚ` is the prefix contribution before weighting, and `lcp` returns the longest string that both `s` and `t` start with. The vertical bars give its length. `p` is the cap, and `min` selects the smaller of that cap and the prefix length. The authors set `p` to `6` for this variant.

The adjustment adds a portion of the room remaining above the original Jaro score.

```
JW(s, t) = J(s, t) + δ · boostₚ(s, t) · (1 − J(s, t))
```

`JW` is the adjusted score, `J` the unadjusted score, and `boostₚ` the capped prefix length for strings `s` and `t`. The multiplication dots indicate that the prefix contribution is scaled by `δ` and by `1 − J(s, t)`. The paper gives `0.1` as the default value of `δ`, the weight of the prefix adjustment.

The skip-gram procedure takes another view of a spelling. A character bigram is a pair of characters. The method counts both adjacent pairs and pairs separated by a specified gap. The `{0, 1}` setting groups adjacent pairs with those that skip one character. The `{0, 2}` setting groups adjacent pairs with those that skip two characters. This lets some evidence survive when a spelling change breaks direct adjacency. In this part of the experiment, the relevant units are character pairs. The clusters later in the procedure are built from words.

CommonPrefix focuses entirely on the shared beginning. It tests a simpler idea about Polish inflection. A pair may remain strongly similar at the start even when the grammatical ending has changed.

```
CP(s, t) = |lcp(s, t)|² / (|s| · |t|)
```

`CP` is the CommonPrefix score. `s` and `t` are the input strings, `lcp` returns their longest common prefix, and vertical bars denote lengths in characters. The superscript `²` squares the prefix length. The dot multiplies the two string lengths in the denominator. Agreement at the beginning contributes to the score, while later characters contribute through the lengths.

The longest common substrings measure, LCS, can accumulate evidence from different portions of the strings. It finds a longest stretch of consecutive characters common to both, removes its first occurrence from each, and searches the remaining strings again. The authors define the score recursively.

```
LCS(s, t) = ⎧ 0                                if |lcs(s, t)| ≤ 2
            ⎩ |lcs(s, t)| + LCS(s − u, t − u)   otherwise, with u = lcs(s, t)
```

`LCS` is the accumulated score, and lower-case `lcs` returns the first longest common substring of `s` and `t`. The vertical bars count characters in that substring. If its length is `2` or less, this call contributes `0`. In the other case, `u` names the substring found, `s − u` and `t − u` remove its first occurrence from each string, and the plus sign adds its length to the score obtained by continuing with the shortened strings.

A common prefix can contribute to LCS, and so can a stretch found elsewhere. The recursive step allows several stretches to contribute to the comparison, provided the successive longest ones meet the length rule. This gives the measure a way to use shared material even when it occurs around parts of the name that vary. Conversely, a short abbreviation can exhaust the usable evidence at the outset. The formula makes it possible to see why the longest-substring measure and the prefix measure might rank the same pairs differently.

#### Guess mentions the grammar never supplied

The next procedure looks for similar forms without first requiring a name from BASE. The authors’ motivating example is a capitalized expression with several similar expressions elsewhere in a targeted stream, many of them unusual according to a word-form dictionary. A family of such strings may be a set of references to one entity. The operations use word unigrams and bigrams, expressions of one or two words, as starting points. These are the lengths that dominate the manually annotated names.

Candidate seeds need enough occurrences and enough characters. The paper describes the usual selection as a minimum frequency requirement.

```
frequency(sᵢ) ≥ φ   and   character-length(sᵢ) ≥ 3
```

`sᵢ` is a proposed seed expression indexed by `i`. `frequency` counts its occurrences in the collection, while `character-length` measures its length as a string. `φ` is the chosen minimum frequency. The greater-than-or-equal signs admit expressions meeting each threshold exactly, and `3` is the minimum length in characters. The usual clustering setting creates a singleton cluster, a cluster with just the seed as its member, for each expression selected this way.

The system compares each word sequence it considers with the seeds. It can join the cluster of the closest seed if they are within the allowed distance.

```
j ∈ arg minₓ distₘ(sₓ, w),   distₘ(sⱼ, w) ≤ maxDist
```

`w` is the word sequence under consideration, and `sₓ` is the seed with index `x`, which ranges over the seed set. `distₘ` denotes the distance according to measure `m`. The expression `arg min` gives the seed indices attaining the smallest distance, and `∈` says the chosen index `j` belongs to that set. `maxDist` is the permitted distance cutoff. The procedure gives each candidate at most one cluster, so closeness to several seeds does not place it in all of them.

The merge step shifts the comparison from seeds to cluster members. Two seed expressions might attract partially different sets of variants. The algorithm can put the families together if the clusters are the closest pair available and their distance meets the same cutoff. Its cluster distance uses the average of the distances between forms on opposite sides.

```
DIST(Cₓ, Cᵧ) = (Σₛ∈Cₓ Σₜ∈Cᵧ distₘ(s, t)) / (|Cₓ| · |Cᵧ|)
```

`DIST` is the distance between clusters `Cₓ` and `Cᵧ`. The two `Σ` signs sum over every form `s` in the first cluster and every form `t` in the second. `distₘ` is the measure used for each pair of strings. The vertical bars count the members in each cluster, and their product is the number of cross-cluster pairs. This average lets the forms added after seed selection influence whether the clusters are merged.

The algorithm repeats the merge while an eligible pair remains. It then discards clusters with fewer than `3` members. The size rule makes the guess depend on a family of forms. Expression frequency has already played a different role in deciding which strings can start a cluster. A often repeated spelling and a family containing several spellings are consequently different sources of support.

The remaining filter uses PoliMorf, a Polish morphological dictionary with approximately 6.7 million word forms. It distinguishes proper names from other entries. For a multiword candidate, the filter examines whether all of its component words have the relevant ordinary word-form status. An expression that contains a word known only as a proper name will fail that all-words test. The paper illustrates this with Jan Grzyb. The surname can also be read as the ordinary word for mushroom, but the entry for the given name is sufficient to keep the whole expression from counting as wholly ordinary.

```
(Σw∈Cₓ WordForm∗(w)) / |Cₓ| ≤ 0.3
```

`Cₓ` is the cluster being filtered, `w` ranges over its member expressions, and `Σ` adds their dictionary indicators. `WordForm∗` returns `1` for an expression all of whose words qualify as ordinary forms under the test and `0` otherwise. `|Cₓ|` counts the cluster members. The ratio is the share of expressions that pass the all-words test, and the cluster is kept if that share is at most `0.3`.

The system uses entries from the surviving clusters as a lookup list. Even though the cluster represents a hypothesis that its forms name the same entity, the prediction used in the evaluation is a span. The guesser supplies no person, location or organization label. In the combined setting it can propose names from portions of the collection left available by the earlier recognizer, whose output is preserved. In a standalone run, the clustering procedure supplies the detections itself.

The authors base cluster formation on the longest common substrings measure after comparing spelling measures for MATCH. They also try a rare-seed variant, CLUSTERING-INFRQ. Its seeds have frequency at most `3`. This asks whether infrequent expressions make better starting points than the ordinary minimum-frequency approach. Both versions use the text collection as the source of the families, with the dictionary filtering the families after they have been formed.

Recovering names in a targeted Polish tweet collection The steps in order.

#### What the stream contributes

The stream supplies repeated spellings and contexts for the matching pass and frequencies and similarity neighborhoods for the guesser. The annotations supply the reference used to evaluate the results. The experiments give the later stages access to the full retrieved collection associated with the test tweets, an approximation to a window of messages in a stream. They also use those experiments to investigate choices such as the minimum frequency of a cluster seed.

This arrangement distinguishes the method from reading each tweet in isolation. A rule can recognize an occurrence where the wording happens to be clear. The spelling comparison can then transfer the evidence of that occurrence to a similar one. The guesser can exploit another kind of concentration, the presence of a family of unusual expressions in the same collection. Its dictionary test leaves room for inflected or unfamiliar names even though its evidence for them is weaker than a rule with a specific name category.

### Experiments and results

#### How the collections were assembled

The authors retrieve messages through Twitter’s search interface. One collection follows the Boston marathon bombings. Its query uses the Polish word for attack together with the nominative or locative spelling of Boston. Another collection contains comments about Donald Tusk. The Macierewicz messages concern his public comments on the crash involving the Polish president at Smoleńsk, and the Gmyz messages concern the journalist’s dismissal from Rzeczpospolita. The random Polish collection provides a setting in which the messages are gathered without the same concentration on a particular story or individual.

The paper distinguishes the full retrieved messages, called the stream corpus, from the manually labeled test corpus. Boston has 2953 messages in the stream and 198 in the test set. Tusk has 1186 in the stream and 232 in the test set. Macierewicz has 931 in the stream and 303 in the test set, while Gmyz has 672 and 310 respectively. The random collection has 7806 stream messages and 286 test messages. The size of a test set therefore depends on the sampling procedure as well as the size of its underlying collection.

To characterize the stream, the authors measure how much of each message body they count as text. They also measure lexical validity, the percentage of tokens in that portion that PoliMorf recognizes as Polish word forms. The histograms show that many messages have a substantial share of text, much of it recognizable to the dictionary. The random collection has lower lexical validity. The authors attribute this to more colloquial wording in those messages. These stream measurements concern the input available to the procedures, including the messages outside the manually annotated sample.

For the test corpus, the authors randomly sample messages whose text-like fraction is at least 80%. They also check the language and remove duplicates. Annotators mark people, locations and organizations, including single-word mentions. They leave titles, positions and stray punctuation outside the mention and exclude names beginning with `@`. Thus the reported evaluation emphasizes names in the body of a message and uses a specific definition of how much text a predicted span should cover.

The annotated set is dominated by short names. Word unigrams account for 86,7% of the names, and bigrams account for 12,7%. Names of three or four words make up 0,6%. This motivates starting clusters from short word sequences. It also matters for the scoring. Recognizing the wrong short expression can produce a false span with little or no overlap with the reference. Recognizing the right expression with an adjoining mark can produce an almost correct span that fails a strict boundary check.

The density of mentions differs across collections. The Boston test tweets average 2.16 names per tweet, the Tusk tweets 2.42, the Macierewicz tweets 2.17 and the Gmyz tweets 2.09. The random test tweets average 0.36. The paper also reports greater name diversity for the random collection, with a figure of 0.79. Boston and Gmyz have the lowest reported diversity among the targeted sets, each at 0.24. The combination of density and repetition gives a sense of the circumstances in which the matching and clustering procedures are being tested.

#### What counts as a correct mention

The evaluation contrasts exact and fuzzy matching. Exact matching checks the beginning and end of the predicted span against the annotation. Where types are scored, the category must agree as well. Fuzzy matching allows a discrepancy at one edge. For example, the name may carry attached characters at the left while ending at the right place. A prediction whose beginning and end both differ still falls outside the fuzzy rule. The term *fuzzy* here describes the evaluator’s treatment of boundaries, whereas the string measures used by MATCH describe how a system compares spellings.

Precision measures the share of returned mentions that the scoring rule accepts. Recall measures the share of annotated mentions the system recovers. F-measure combines precision and recall in a single value that depends on both. A procedure that adds candidates can raise recall by finding more true mentions, with an accompanying risk to precision if enough of the added spans are incorrect. The paper reports all three quantities so that the reader can see what moves when the system changes.

The category requirement varies across configurations. BASE and the extensions that match spellings of its recognized names can be assessed on types. When a configuration contains the guesser, the paper evaluates span detection, pooling the categories. This applies to the entire configuration because part of its output has no category. The averages comparing BASE with those configurations are useful for reading the paper’s overall result, with that change in the scoring task kept in view.

#### How far the grammar gets

On the four targeted test collections, BASE averages 87.3% precision and 56.3% recall with exact scoring. The corresponding F-measure is 67.0% in the results table. With fuzzy scoring, its average precision is 90.5%, recall is 58.5% and F-measure is 69.5%. The baseline often recognizes valid names, leaving more room to recover missed mentions than to raise the share of returned names that are correct.

The aggregate hides several different patterns. In the Boston test set, exact person recognition has precision of 31.6% and recall of 35.3%. Exact location recognition in that set reaches 94.3% precision and 71.8% recall. In the Macierewicz set, exact recognition of people reaches 93.6% precision and 80.2% recall. These cases show that a single overall baseline score cannot describe the dependability of every category on every topic.

Organizations present a recurring recall problem. In the Tusk collection their exact precision is 82.4%, with recall of 35.0%. In the Gmyz collection the corresponding organization values are 82.8% and 15.1%. The grammar can be reasonably selective when it produces an organization prediction there, yet many reference mentions remain missing. In the random collection, the organization row gives 0 for both precision and recall. The authors characterize overall performance on random tweets as weak, with 55% precision and 39% recall in their discussion of BASE.

The Gmyz collection illustrates a separate problem with people. BASE has exact person precision of 85.5% there, while exact person recall is 32.5%. The authors attribute the low overall recall to a often mentioned person name that the grammar does not match. With frequent mentions, one gap in the set of forms the grammar recognizes can affect many predictions. This is precisely the kind of gap that a second pass keyed to spelling can sometimes close.

#### Which additions improve the scores

The main comparison includes the original grammar, the grammar with a spelling pass, the grammar with clustering, and the system with both additions. For the spelling-only extension, the longest common substrings setting gives an average exact F-measure of 74.1% on the targeted test sets. Its average exact precision is 85% and recall is 65.6%. The corresponding fuzzy average F-measure is 78.8%. The principal movement from BASE is in recall, although the way that tradeoff plays out depends strongly on the collection.

Average exact-match F-measure on the four targeted Polish tweet test sets The combined setting has the highest reported average, and clustering works better with the grammar.

**The numbers**

| System or setting | F-measure % |
| --- | --- |
| BASE | 67.0 |
| BASE with LCS matching | 74.1 |
| Clustering alone | 36.7 |
| BASE with clustering | 76.6 |
| BASE with LCS matching and clustering (this paper) | 77.9 |
| BASE with LCS matching and rare-seed clustering | 77.0 |

In the strongest combined setting, exact precision is 84.5% and recall is 72.2%. Its fuzzy precision is 93.6%, recall is 80.0% and F-measure is 86.2%. The exact result pairs a higher share of recovered references with a lower share of accepted predictions than BASE’s typed exact result. The fuzzy result accepts more of the mentions returned by the combined system. Since configurations with the guesser are evaluated on detection, the figures describe how well the system locates names under the two boundary rules.

The Gmyz results expose a larger effect from the spelling pass than the averages suggest. BASE has 85.3% exact precision, 28.5% exact recall and 42.8% exact F-measure in that test set. With Levenshtein matching, precision is 90.9% and recall is 63.6%, giving exact F-measure of 74.8%. This is an instance in which the extra predictions go together with higher precision as well as higher recall. Other collections more frequently show a recall increase with precision close to the baseline or lower than it.

Exact-match F-measure for grammar and spelling measures on the Gmyz test set Edit-distance matching leads this comparison, with skip-gram matching close behind.

**The numbers**

| System or setting | F-measure % |
| --- | --- |
| BASE | 42.8 |
| BASE with Levenshtein matching (this paper) | 74.8 |
| BASE with Smith–Waterman matching | 68.0 |
| BASE with Jaro matching | 53.9 |
| BASE with skip-gram matching, adjacent and one skipped | 74.5 |
| BASE with skip-gram matching, adjacent and two skipped | 74.6 |
| BASE with LCS matching | 68.7 |

On the Boston test set, the exact F-measure of BASE is 70.2%, and the LCS extension gives 71.1%. Its larger gains come when clustering is used as well. The combined system reaches 81.4% on Boston under exact matching, with precision of 87.6% and recall of 75.9%. Boston therefore gives a different picture from Gmyz. The relative value of extending a known name and of looking for a family of new ones changes with the collection and its missed mentions.

For Macierewicz, BASE records exact F-measure of 79.8%. The full combination with the ordinary seed rule reaches 80.9%, while the combination with the rare-seed rule reaches 82.1%. So the ordering in the average chart is an ordering across the targeted collections. It can coexist with a different ordering in a particular collection. The paper’s most successful aggregate setting is best understood in that sense.

### What the ablations show

#### Recovering a variant and discovering a name are different jobs

The paper compares the stages by leaving them out and by running clustering by itself. The ordinary guesser alone has an average exact detection F-measure of 36.7% and a fuzzy detection F-measure of 56.0% on the targeted test sets. With the grammar underneath it, the same kind of guesser reaches 76.6% under exact scoring and 83.5% under fuzzy scoring. These results fit the division of labor in the pipeline. Local grammatical evidence gives the system reliable first-pass detections, while the families gathered from the stream can supplement that output.

The contrast between the standalone guesser and the combined setting is important to interpreting the heuristic. A family of similar unusual strings can point to a name. As a general basis for recognizing every name in the stream, the heuristic has limited coverage and precision. A mention can be a perfectly ordinary dictionary word used as a name, or it can appear without enough other forms in the collection to support a cluster. The grammar can find some such mentions from their local construction. In turn, the guesser can propose forms the grammar’s local patterns miss.

The two extension stages have overlapping opportunities for improvement. Matching can retrieve a candidate when the grammar has already found a similar name. Clustering can retrieve a related candidate if the collection contains a suitable family. Adding a clustering stage after matching therefore tests whether the latter has left candidates that stream-based grouping can recover. The average targeted results favor using both. Adding their separate gains together would be inappropriate because the stages can recover some of the same mentions.

#### Matching depends on the shapes of the forms

The comparisons among string measures show that a recall gain alone can be misleading. On the targeted sets, the Jaro–Winkler configuration reports average exact recall of 63.3%, above the grammar’s 56.3%, alongside precision of 61.2%. Its average exact F-measure is 62.0%. More names are recovered, but low precision changes the overall balance. The plain Jaro setting also scores below BASE on average under exact matching. These results make the observed advantage of LCS a comparison of complete detection outcomes, with both accepted and mistaken candidates included.

LCS is the measure the authors take into the clustering experiments. Skip-grams behave similarly in the authors’ overall assessment, and other measures can do better on an individual collection. The Gmyz chart, for instance, favors Levenshtein in that comparison. A prefix rule gives evidence for the shared beginning of a declined name, a skip-gram rule lets some letter pairs survive gaps, and a substring rule can use a matching stretch elsewhere in the string. How useful each property is depends on which variant forms actually occur.

The paper offers two specific explanations for a limited increase from MATCH. First, the grammar’s gazetteer already contains many inflected forms. Finding a visually similar inflection adds little when a rule has already captured it. Second, some of the missed forms are difficult to relate to an anchor through character similarity. The Gmyz discussion includes Rzepa, Rzepie, Rzepy, Rz and RP as ways of mentioning Rzeczpospolita. Grammatical changes within a shortened form and contraction to initials shrink or rearrange the material a character comparison can use.

The examples also help explain why repetition and string likeness are complementary evidence. Repetition supplies opportunities to observe forms in a topic-specific collection. String likeness determines whether a particular pair can be connected by the system. A recurring abbreviation can be obvious to a reader following the story while remaining poorly supported by the shared characters. The authors’ comparison investigates how far the latter evidence can travel without assuming that every locally familiar abbreviation is recoverable.

#### The seed-frequency choices have uneven effects

For the ordinary clustering procedure, the authors vary the minimum seed frequency from 1 to 30 across the collections and relevant configurations. The paper shows the Boston BASE-with-clustering example under exact matching. The authors judge its precision and recall curves to be relatively insensitive to the threshold and describe the other curves as similar. They therefore set the frequency minimum to 1 in the main comparison. In this setting, an expression can provide a seed from its first observed occurrence, while the later size filter still requires a surviving cluster to contain several forms.

A separate comparison restricts seeds to infrequent expressions. The rare-seed guesser on its own yields average exact detection F-measure of 21.0% on the targeted collections, compared with 36.7% for ordinary clustering. The paper identifies Gmyz as an exception to the generally poor results of the rare-seed guesser alone. A seed rule that is weak by itself can also help a combined configuration on an individual collection, as the Macierewicz figures illustrate.

These experiments separate frequency at initialization from support later in the procedure. Lowering the minimum gives the clustering procedure more possible starting points. Requiring rarity excludes frequently observed starting forms. After either choice, the distance cutoff, cluster size requirement and dictionary filter still determine which families survive. The weak response to the minimum in the illustrated curves concerns the whole procedure with those later operations in place.

#### Boundary tolerance identifies a recurring failure mode

The exact and fuzzy scores provide another way to inspect the contribution of the guesser. For BASE with ordinary clustering, the average targeted F-measure is 76.6% under exact scoring and 83.5% under fuzzy scoring. In that comparison, both evaluations concern detection. Changing the boundary tolerance can therefore reveal predictions that reach the right part of the message while making an error at one end.

The authors observe that clustered names are sometimes attached to adjacent words or character sequences. The collection can contain enough repetitions of the extended string for the guesser to discover it, while the annotation spans cover only the proper name. This produces one plausible route from higher fuzzy scores to a concrete error. The system has picked up the expression in the noisy text, and the manual annotation draws a more precise boundary.

The error discussion puts this boundary problem in perspective. The authors say the principal errors are added and missed entities, with overlap errors less frequent. They also identify ambiguity in single-token mentions. A short expression can be plausible for more than one type or as an ordinary word. If the grammar assigns the wrong reading and later matching uses that result as an anchor, similar forms can inherit its mistake. The stages thus propagate evidence in both directions of quality. A clear anchor can recover a missed mention, and an erroneous anchor can lead to further errors.

### Limitations

#### Limits the authors identify

The authors regard the range of test collections and the depth of their error analysis as areas for further work. The collections vary in topic and writing style, and their differences matter to the scores. Gmyz has an especially consequential missed person name, and the random messages provide less coherent context for repeated references. A larger collection of topics would help establish how common these patterns are. A deeper error analysis would show how much of the performance comes from correcting a small number of frequent misses and how much comes from recognizing a wider set of forms.

The paper also treats the tested spelling measures as a selection. The examples of newspaper abbreviations show a limit of the evidence they share. Some variants contain too little common material to be dependable matches for the recognized full name. The authors propose looking at more string comparisons and examining which individual grammar rules contribute in targeted tweets. The experiments establish the behavior of the tested combinations, with rule-by-rule attribution left as a separate question.

The authors identify unwanted characters next to a name as a source of boundary errors and suggest that trimming heuristics could help. They also point out that the guesser can discover names outside the annotated categories. Because the reference covers people, locations and organizations, a detection from another category counts against the guesser in the evaluation. These are different errors from the perspective of the application. The first concerns which characters belong to the target mention. The second concerns whether a coherent mention belongs to the inventory being evaluated.

The paper proposes comparison with an unsupervised alternative for targeted streams, drawing on earlier work that used knowledge gathered from the web. The reported study compares the authors’ own grammar and extensions on the same collections. A direct comparison with another recognizer using the same input and annotation rules would address a different question about the relative value of the approach.

#### Limits of the data and scoring setup

The annotation sample favors messages with a large text-like portion and applies language and duplicate checks. The annotated tweets therefore represent the eligible part of each collection, as specified by those decisions. The full stream supplies evidence to the procedures, including material outside the test subset. The precision and recall figures are consequently about the sampled messages, while the recurrence and variant evidence can come from the larger retrieved set. Performance on all messages returned by the search, with every kind of short or noisy body included in scoring, remains open.

The mention inventory also bounds the result. The reference excludes `@` names and the titles, roles and extraneous punctuation around mentions. The results therefore concern a specific extraction policy for three categories. A monitoring application interested in account references, job titles or additional entity types would need evaluation under its own inclusion rules. The subset studied here is useful for comparison with the news grammar because the grammar already addresses the main target categories.

The full retrieved collection acts as a window from which the system derives the knowledge used on the test subset. An evaluation of operation over time would need to specify when names become available as anchors, how long a cluster can accumulate evidence, and which messages have arrived at the time of each prediction. In this study, a form in the retrieved set can help recognize another form elsewhere in the same set. The reported measurements establish the usefulness of that collection-level access, leaving latency and recognition at first occurrence to a different experiment.

The results also distinguish span detection from type assignment only to the extent the authors’ scoring allows. When the clustering stage is present, the evaluation pools person, organization and location mentions. A high F-measure in that setting gives evidence about locating spans. Measuring typed recognition for the full pipeline would require assigning types to the guessed spans and then checking them against the annotations. Likewise, treating a cluster as a set of references to one entity motivates the method, but a span score does not verify the identity of every expression in the cluster.

The parameter comparisons use the collections from the study, including the sweep over seed frequency and the spelling comparisons that motivate the choice of LCS. The reported ranking tells a reader which choices worked well in those experiments. A separate collection of topics set aside for final evaluation would help determine how reliably that ranking transfers. The Gmyz and Macierewicz results already show that the strongest average configuration can share the field with different winners on particular topics.

Finally, the later stages have relatively light linguistic requirements, while the baseline they extend is backed by a substantial Polish gazetteer and a set of language-specific patterns. Clustering itself uses a separate dictionary with coverage of Polish word forms. The experiment shows what adding spelling comparisons and collection statistics can do when these resources are available. Applying the same procedure with a smaller dictionary or to a different language would change the evidence available both to the initial recognizer and to the cluster filter.

### What came after

The paper ends with an agenda for extending the experiment. The authors propose expanding the test collections, examining errors more systematically, assessing the contribution of individual grammar rules and trying more ways to compare spellings. They also propose evaluating the approach against an unsupervised system for targeted streams. These are directions the authors set out for subsequent work. The documented development stops at that agenda.

## Cite

Cite as Jakub Piskorski and Maud Ehrmann. 2013. On Named Entity Recognition in Targeted Twitter Streams in Polish. Proceedings of the 4th Biennial International Workshop on Balto-Slavic Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{piskorski2013named,
  title = {{On Named Entity Recognition in Targeted Twitter Streams in Polish.}},
  author = {Jakub Piskorski and Maud Ehrmann},
  booktitle = {Proceedings of the 4th Biennial International Workshop on Balto-Slavic Natural Language Processing},
  year = {2013},
  url = {https://aclanthology.org/W13-2413/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
