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/02/02 08:45:34 UTC
[jira] [Created] (OPENNLP-753) USGS Indexer fails with
ArrayIndexOutOfBoundsException
Joern Kottmann created OPENNLP-753:
--------------------------------------
Summary: USGS Indexer fails with ArrayIndexOutOfBoundsException
Key: OPENNLP-753
URL: https://issues.apache.org/jira/browse/OPENNLP-753
Project: OpenNLP
Issue Type: Bug
Components: Entity Linker
Reporter: Joern Kottmann
While indexing a recent version of the USGS data (NationalFile_20141202.txt) the following exception is thrown:
java.lang.ArrayIndexOutOfBoundsException: 2
at opennlp.addons.geoentitylinker.indexing.USGSProcessor.readFile(USGSProcessor.java:77)
at opennlp.addons.geoentitylinker.indexing.USGSProcessor.process(USGSProcessor.java:54)
at opennlp.addons.geoentitylinker.indexing.GazetteerIndexer.index(GazetteerIndexer.java:168)
at opennlp.addons.geoentitylinker.indexing.GazetteerIndexer.main(GazetteerIndexer.java:44)
A couple of lines in this file are now shorter than the expected minimum length. I added a few lines to print those out:
Skipped line: 2717280|Sullivan Field
Skipped line: Sullivan Field
Skipped line: Sullivan Field
Skipped line: |Airport|FL|12|Alachua|001|294359N|0823358W|29.7330798|-82.5661417|||||28|92|Newberry|10/16/2014|
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)