coli-saar / alto

Alto, the Algebraic Language Toolkit
Other
17 stars 2 forks source link

NullPointerException for a TAG grammar #63

Open CptPoesn opened 4 years ago

CptPoesn commented 4 years ago

For me the enclosed grammar produced the following error message. A colleague of mine could't reproduce this error.

parse> der Mann schlaeft
computed chart: 100 ms
Exception in thread "main" java.lang.NullPointerException
    at de.saar.coli.featstruct.AvmFeatureStructure.recursiveDeepCopy(AvmFeatureStructure.java:316)
    at de.saar.coli.featstruct.AvmFeatureStructure.deepCopy(AvmFeatureStructure.java:292)
    at de.up.ling.irtg.algebra.FeatureStructureAlgebra$1.getRulesBottomUp(FeatureStructureAlgebra.java:163)
    at de.up.ling.irtg.automata.TreeAutomaton.processAllRulesBottomUp(TreeAutomaton.java:3049)
    at de.up.ling.irtg.automata.TreeAutomaton.processAllRulesBottomUp(TreeAutomaton.java:2973)
    at de.up.ling.irtg.automata.TreeAutomaton.makeAllRulesExplicit(TreeAutomaton.java:1324)
    at de.up.ling.irtg.automata.TreeAutomaton.getAllStates(TreeAutomaton.java:471)
    at de.up.ling.irtg.automata.InverseHomAutomaton.<init>(InverseHomAutomaton.java:69)
    at de.up.ling.irtg.automata.TreeAutomaton.inverseHomomorphism(TreeAutomaton.java:1560)
    at de.up.ling.irtg.script.TulipacParser.main(TulipacParser.java:249)

I had to rename the grammar from deutsch.tag to deutsch.txt, because github doesn't support uploading .tag files. deutsch_a.txt