Difference between revisions of "Named entity recognition"

From Apertium
Jump to navigation Jump to search
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Github-unmigrated-tool}}
Named entity recognition is about recognising named entities, for example proper nouns, etc. in text. When working with long rules, one of the problems in having them applied can be proper nouns. For example, names, companies, places etc. that aren't in the dictionaries and thus are not analysed. So for example in a sentence like:
Named entity recognition is about recognising named entities, for example proper nouns, etc. in text.

There are several translation issues that can show up when there are ''unknown'' proper nouns in the input. One is that transfer rules that work on <np>-tagged words do not apply when the word is unknown. Another is that proper nouns can be ambiguous with other, known words, and thus be translated when they should stay untranslated.

{{TOCD}}

==Unknown proper nouns in transfer==
When working with long rules, one of the problems in having them applied can be proper nouns. For example, names, companies, places etc. that aren't in the dictionaries and thus are not analysed. So for example in a sentence like:


* Die man het John gesien.
* Die man het John gesien.
Line 19: Line 27:
* The man had John seen.
* The man had John seen.


Which is less than ideal. What we need is something that can tag "John" as a proper noun (<code><np></code>), so that the rules may be applied in the appropriate fashion.
Which is less than ideal.

===Case handling===

The problem becomes more acute in other language groups where proper nouns have cases. For example in Serbo-Croatian or Polish:

:Władysława → Władysław{{fade|<np><ant><m><sg><gen>}}

and

:Marijom → Marija{{fade|<np><ant><f><sg>&lt;ins&gt;}}

===Pipeline===
It should probably go in between tagging and transfer, and work only on unknown words.

==Disambiguating unknown proper nouns from known words==
The module [[apertium-pn-recogniser]] detects proper nouns in the input and marks them as unknown words so that the rest of the modules in the pipeline do not process them. This avoids the common case of wrong translations of source-language proper nouns which are also common nouns (or other parts-of-speech) according to the dictionaries. The proper noun recogniser is mainly based on the one already included in the [[Freeling]] project.

The proper noun recogniser must be invoked between the tagger and the transfer modules. Option -p is needed in the tagger, so a version from Apertium greater or equal to 3.1.0 is needed.

Check out from SVN with:
svn co https://svn.code.sf.net/p/apertium/svn/trunk/apertium-pn-recogniser


==Further reading==
==Further reading==


* Babych, B. and Hartley, T. (2003) "[http://www.comp.leeds.ac.uk/bogdan/_data/eamt-eacl2003-babych-hartley.pdf Improving machine translation quality with automatic named entity recognition ]". ''Procs. EACL-EAMT 2003: Improving MT through other language technology tools, Budapest, Hungary, April 2003 ''.
* Babych, B. and Hartley, T. (2003) "[http://www.comp.leeds.ac.uk/bogdan/_data/eamt-eacl2003-babych-hartley.pdf Improving machine translation quality with automatic named entity recognition ]". ''Procs. EACL-EAMT 2003: Improving MT through other language technology tools, Budapest, Hungary, April 2003 ''.

==External links==

* [http://garraf.epsevg.upc.es/freeling/doc/userman/html/node21.html FreeLing : Named Entity Recogniser]

[[Category:Development]]
[[Category:Documentation in English]]

Latest revision as of 16:52, 10 March 2018

Note: After Apertium's migration to GitHub, this tool is read-only on the SourceForge repository and does not exist on GitHub. If you are interested in migrating this tool to GitHub, see Migrating tools to GitHub.

Named entity recognition is about recognising named entities, for example proper nouns, etc. in text.

There are several translation issues that can show up when there are unknown proper nouns in the input. One is that transfer rules that work on <np>-tagged words do not apply when the word is unknown. Another is that proper nouns can be ambiguous with other, known words, and thus be translated when they should stay untranslated.

Unknown proper nouns in transfer[edit]

When working with long rules, one of the problems in having them applied can be proper nouns. For example, names, companies, places etc. that aren't in the dictionaries and thus are not analysed. So for example in a sentence like:

  • Die man het John gesien.

would be analysed something like (simplifying slightly):

  • Die<det> man<n><vbhaver> *John gesien<vblex><past>

If we have a rule that says something like:

  • <vbhaver> <noun phrase> <vblex><past> → <vbhaver> <vblex><past> <noun phrase>

This will not apply, because "John" is not detected as anything. As a result the translation will be worse because the word re-ordering has not taken place. So, instead of getting:

  • The man had seen John

We would get:

  • The man had John seen.

Which is less than ideal. What we need is something that can tag "John" as a proper noun (<np>), so that the rules may be applied in the appropriate fashion.

Case handling[edit]

The problem becomes more acute in other language groups where proper nouns have cases. For example in Serbo-Croatian or Polish:

Władysława → Władysław<np><ant><m><sg><gen>

and

Marijom → Marija<np><ant><f><sg><ins>

Pipeline[edit]

It should probably go in between tagging and transfer, and work only on unknown words.

Disambiguating unknown proper nouns from known words[edit]

The module apertium-pn-recogniser detects proper nouns in the input and marks them as unknown words so that the rest of the modules in the pipeline do not process them. This avoids the common case of wrong translations of source-language proper nouns which are also common nouns (or other parts-of-speech) according to the dictionaries. The proper noun recogniser is mainly based on the one already included in the Freeling project.

The proper noun recogniser must be invoked between the tagger and the transfer modules. Option -p is needed in the tagger, so a version from Apertium greater or equal to 3.1.0 is needed.

Check out from SVN with:

svn co https://svn.code.sf.net/p/apertium/svn/trunk/apertium-pn-recogniser

Further reading[edit]

External links[edit]