You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (JIRA)" <ji...@apache.org> on 2015/01/31 00:07:35 UTC

[jira] [Closed] (OPENNLP-749) Entity Linker cmd line tools throws NPE

     [ https://issues.apache.org/jira/browse/OPENNLP-749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joern Kottmann closed OPENNLP-749.
----------------------------------
    Resolution: Fixed

> Entity Linker cmd line tools throws NPE
> ---------------------------------------
>
>                 Key: OPENNLP-749
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-749
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Entity Linker
>            Reporter: Joern Kottmann
>             Fix For: 1.6.0
>
>
> The cmd line tool for the Entity Linker throws the following NPE:
> Exception in thread "main" java.lang.NullPointerException
> 	at opennlp.tools.util.Span.spansToStrings(Span.java:368)
> 	at opennlp.addons.geoentitylinker.GeoEntityLinker.find(GeoEntityLinker.java:64)
> 	at opennlp.tools.cmdline.entitylinker.EntityLinkerTool.run(EntityLinkerTool.java:124)
> 	at opennlp.tools.cmdline.CLI.main(CLI.java:227)
> The reason for this is that the token spans array which is passed to the entity linker implementation contains null values.
> The problem seems to be in the EntityLinker tool, line 115. The array index must be ti instead of i. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)