hfst/hfst-optimized-lookup

exception in net.sf.hfst.HfstOptimizedLookup

Opened this issue · 1 comments

When analyzing words in Portuguese with a small transducer I get the following error:

java net.sf.hfst.HfstOptimizedLookup ~/Documents/DELAF/mini_FST/miniFST.hfst.inverted.ol < input.txt > output.txt
Exception in thread "main" java.lang.NullPointerException
at net.sf.hfst.UnweightedTransducer.analyze(Unknown Source)
at net.sf.hfst.HfstOptimizedLookup.runTransducer(Unknown Source)
at net.sf.hfst.HfstOptimizedLookup.main(Unknown Source)

uname -a
MINGW32_NT-6.1 GREATNLP45 1.0.12(0.46/3/2) 2012-07-05 14:56 i686 unknown

$ java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode, sharing)

The output generated by the lookup tool is correct based on transducer, but the errors prevent the use of the java class in an application, because it suggests it isn't reliable enough.

Reported by: *anonymous

Version of HFST

No tests selected; printing known data
HFST info version: 0.1
HFST packaging: hfst 3.4.3
HFST version: 3.4.3
HFST long version: 300040003
HFST configuration revision: $Revision: 3003 $
OpenFst supported
SFST supported
foma supported
Unicode support: no (hfst)

Original comment by: *anonymous