Commits

Mike Speriosu  committed 15190ed

Fixed bug in DocumentPinKMLGenerator.

  • Participants
  • Parent commits cbda354

Comments (0)

Files changed (1)

File src/main/scala/opennlp/textgrounder/geolocate/DocumentPinKMLGenerator.scala

       println("You must specify a KML output file via -k.")
       sys.exit(0)
     }
-    val offset = if(tokenIndexOffset != None) tokenIndexOffset.value.get else 0
+    val offset = if(tokenIndexOffset.value != None) tokenIndexOffset.value.get else 0
 
     val outFile = new File(kmlOutFile.value.get)
     val stream = new BufferedOutputStream(new FileOutputStream(outFile))