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)

Reply via email to