<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[dpa-newslab - Medium]]></title>
        <description><![CDATA[Technology Scouting, Prototypes and Services for dpa Deutsche Presse-Agentur - Medium]]></description>
        <link>https://medium.com/dpa-newslab?source=rss----b874a7ae79a0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>dpa-newslab - Medium</title>
            <link>https://medium.com/dpa-newslab?source=rss----b874a7ae79a0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:15:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/dpa-newslab" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[8 lessons learned about NER]]></title>
            <link>https://medium.com/dpa-newslab/8-lessons-learned-about-ner-f40b263490db?source=rss----b874a7ae79a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/f40b263490db</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[linked-data]]></category>
            <category><![CDATA[journalist-tools]]></category>
            <category><![CDATA[named-entity-recognition]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Alex Gaus]]></dc:creator>
            <pubDate>Tue, 06 Feb 2018 11:31:00 GMT</pubDate>
            <atom:updated>2018-02-06T14:42:31.333Z</atom:updated>
            <content:encoded><![CDATA[<p>This article summarizes the lessons I learned during my thesis. I wrote my thesis at the <a href="https://www.ijk.hmtm-hannover.de/en/home/">Department of Journalism and Communication Research</a> in Hannover, Germany and worked together with the <a href="https://twitter.com/dpa_newslab">Newslab</a> of the German Press Agency (<a href="https://www.dpa.com/en/">dpa</a>). The thesis was also part of the <a href="https://newsstreamproject.org/">Newsstream project</a>, in which journalists and developers are working together to create big data tools for journalists.</p><p>The subject of my work is the comparison of the performance of Named Entity Recognition (NER) and Linking (NEL) for 200 German Newswire articles from six different NER tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*9ICjpdIPiocUWC5oF47duw.png" /><figcaption>Example figure for NER</figcaption></figure><p>To compare these tools I created an annotated corpus of 200 dpa texts with found and linked entities. The analyzed tools need to recognize entities and link them to a knowledge base such as <a href="http://www.wikidata.org/">WikiData</a>, can process German texts and are accessible through an API. Analyzed tools are:</p><ul><li><a href="http://ambiverse.com/"><strong>Ambiverse</strong></a></li><li><a href="http://dandelion.eu/"><strong>Dandelion</strong></a></li><li><strong>Google Cloud Natural Language (</strong><a href="https://cloud.google.com/natural-language/?hl=en"><strong>GCNL</strong></a><strong>)</strong></li><li><strong>Micsrosoft Entity Linking Intelligence (</strong><a href="https://azure.microsoft.com/de-de/services/cognitive-services/entity-linking-intelligence-service/"><strong>MELI</strong></a><strong>)</strong></li><li><a href="http://textrazor.com/"><strong>Textrazor</strong></a></li><li><a href="http://txtwerk.de/"><strong>Txtwerk</strong></a></li></ul><p>If you have never heard of Named Entity Recognition the <a href="https://en.wikipedia.org/wiki/Named-entity_recognition">Wikipedia article</a> gives a good overview. Here are the lessons I learned during my thesis:</p><h3>1. NER is important and can be used for many things</h3><p>NER is part of Information Extracting in Computer linguistics and plays an important role for many NLP-applications. <a href="http://www.morganclaypool.com/doi/pdf/10.2200/S00481ED1V01Y201302WBE005">Aaron Swartzs semantic web</a> (or web 3.0) can only work with NER. The German Press Agency can use NER to enrich their texts with more and better structured metadata and can simplify and automate the process of adding of metadata for their journalists. Texts with more metadata can be better found and organized and have an extra value for their customers.</p><p>And even for communication science, NER can be used to automate classical content analysis.</p><h3>2. The creation of an annotated corpus is more difficult than I thought</h3><p>For the creation of the annotated corpus I didn’t start from scratch. I adapted the guidelines used for the <a href="https://sites.google.com/site/germeval2014ner/">GermEval 2014</a> and used a <a href="https://github.com/dpa-newslab/lightsail-webanno">modified version</a> of the annotation tool <a href="https://webanno.github.io/webanno/">Webanno</a>. Even with detailed guidelines (12 pages) it took a while to teach the three annotators. On average they needed 12 minutes for one text. They reached an average reliability of Krippendorff’s Alpha α = 0.83. This value is acceptable but could be better by a improving the teaching of the annotators and curating of the results of several annotators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*to9BJGloVLQZ7qAtyykZGg.png" /><figcaption>Screenshot of the annotation tool webanno with recommendations from wikidata for the found entities.</figcaption></figure><h3>3. No tool performs really well</h3><p>As I expected the tools perform quite different. The human annotators found 4039 entities, while the tools found an average of 5092 entities. Google Cloud Natural Language and Microsoft Entity Linking Intelligence found less entities than the humans found. Textrazor found almost twice as many entities than in the annotated corpus.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2F1lBHd%2F1%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2F1lBHd%2F1%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="748" height="235" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc97efc8cf0ced1b831b7d9f2ef15933/href">https://medium.com/media/cc97efc8cf0ced1b831b7d9f2ef15933/href</a></iframe><p>This difference can also be seen in the precision and recall values of the tools. The tools with more entities tend to have a higher recall.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FF1KJM%2F3%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2FF1KJM%2F3%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="748" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/80e90db442a08a3d9c034337408a44eb/href">https://medium.com/media/80e90db442a08a3d9c034337408a44eb/href</a></iframe><p>No tool reaches results close to the annotated corpus. Ambiverse gets the best results with a F-measure of 67.57. Especially the tools from the big technology corporations Google and Microsoft disappointed me.</p><h3>4. A recognized entity is not automatically linked correctly</h3><p>In a second step I looked if all recognized entities are linked correctly. If you compare the results with the graph above, it is visible that the linking of entities throughout all tools and benchmarks is around 10 points lower than the recognition only.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fr9hyz%2F1%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2Fr9hyz%2F1%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="748" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8230834f5c3e59167ac8d9613b1f789/href">https://medium.com/media/e8230834f5c3e59167ac8d9613b1f789/href</a></iframe><h3>5. NER works really well for <em>Persons</em></h3><p>The tools are extracting four categories of entities: <em>Persons</em>, <em>Organizations</em>, <em>Locations </em>and <em>Other</em>. An analysis of the benchmarks per category shows that <em>Persons</em> are recognized the best, while <em>Locations</em> have the highest recall. The precision of <em>Locations </em>is higher than <em>Organizations</em>. For entities of the category <em>Other</em> NER does not really work well.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2F3H79Y%2F1%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2F3H79Y%2F1%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="500" height="700" frameborder="0" scrolling="no"><a href="https://medium.com/media/f18c40d9e503fdf9b8761decc2556bb3/href">https://medium.com/media/f18c40d9e503fdf9b8761decc2556bb3/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FOTWPv%2F1%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2FOTWPv%2F1%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="500" height="700" frameborder="0" scrolling="no"><a href="https://medium.com/media/7014473ce53c912afd3777593a57528e/href">https://medium.com/media/7014473ce53c912afd3777593a57528e/href</a></iframe><h3>6. NER works the best for sport articles</h3><p>The analyzed texts from the dpa are sorted into 5 sections: <em>Arts &amp; Culture</em>, <em>Economy</em>, <em>Sports</em>, <em>Politics </em>and <em>Miscellaneous</em>.While precision and recall are the highest for texts about sport, <em>Miscellaneous</em> has the lowest precision while art has the lowest recall.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FHUwLp%2F2%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2FHUwLp%2F2%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="600" height="700" frameborder="0" scrolling="no"><a href="https://medium.com/media/816e99db578b5ca9200f7997402b971e/href">https://medium.com/media/816e99db578b5ca9200f7997402b971e/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FtHZsm%2F2%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2FtHZsm%2F2%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="600" height="700" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8a9261cc9d2e2195a6bb67d89df3f39/href">https://medium.com/media/a8a9261cc9d2e2195a6bb67d89df3f39/href</a></iframe><h3>7. A combination of tools CAN improve the results (a bit)</h3><p>If you combine tools and only take the overlap of several tools you can improve the results. You get the highest recall for a combination of two tools, while the precision is logically the highest when there is an overlap of all six tools together, for the price of a very low recall. For the combination of four tools you get the highest F-measure of 73.71. This F-measure is only slightly higher than the highest F-measure reached by the tool Ambiverse (67.57).</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FsmYFt%2F1%2F&amp;src=%2F%2Fdatawrapper.dwcdn.net%2FsmYFt%2F1%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=dwcdn" width="748" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/01620f355064255f9ee94dcc3019e9c2/href">https://medium.com/media/01620f355064255f9ee94dcc3019e9c2/href</a></iframe><h3>8. <strong>NER tools are easy to use</strong></h3><p>I am not a developer and my Python skills are limited. This didn’t stop me from accessing the APIs of the tools. Most of the tools are well documented and often have their own SDK in different programming languages. All tools offer free trials, which I could use for my thesis. Implementing NER in an existing system is still complicated, but trying out NER with this APIs is very simple.</p><h3><strong>Conclusion:</strong></h3><p>It was expectable that the tools perform worse for German texts than they do for English ones (refer to<a href="http://www.lrec-conf.org/proceedings/lrec2014/pdf/176_Paper.pdf"> Rizzo, 2014</a>), where tools reach F-measures close to 90. But even compared to the analysis of the Named Entity Extractors build for the <a href="https://sites.google.com/site/germeval2014ner/">GermEval 2014</a>, the tools underperform. While the tools from the GermEval reached an average F-measure of 69.33, the tested tools of my thesis stayed quite below that (58.31). The results of the tools aren’t good enough to automate tagging of texts with keywords. They are good enough though to be used for recommendations in the context of adding metadata to articles in the newsroom. For further research the quantity (more texts) and quality (curating several annotators) of the annotated corpus needs to be improved. To understand the strengths and weaknesses of the tools better a closer look at the aberrations of the tool from the corpus (different start or end position, different link for the same word) could help. Since big software corporations as Microsoft, Google, Amazon and IBM are starting to get interested in NER, we can expect an improvement of the tools for the future.</p><h3>tl;dr</h3><blockquote>I compared NER-tools for the German Press Agency (dpa). I found out, that the six tools perform differently. Ambiverse reached overall the best results. NER works the best for the category <em>Person </em>and texts about sport, which are heavy in persons compared to texts from other subject areas. A combination of several tools improves the results a bit. None of the tools’ performance is good enough to replace the recognition of entities from humans. NER-Tools can be used to recommend entities for markup to editors though.</blockquote><p>If you are interested in the code I used for this thesis you can find it in this (quite unstructured) <a href="https://github.com/gobitodic/nex-thesis">repository</a>. The server of the annotation tool webanno will be online for some days more, if you want to have the link to this server or any other questions, please contact me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40b263490db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dpa-newslab/8-lessons-learned-about-ner-f40b263490db">8 lessons learned about NER</a> was originally published in <a href="https://medium.com/dpa-newslab">dpa-newslab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>