coli-saar / alto

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

BinarizingAlgebra returns wrong signature #41

Open akoehn opened 6 years ago

akoehn commented 6 years ago

Original report by Christoph Teichmann (Bitbucket: cteichmann, GitHub: CTNLP).


BinarizingAlgebra uses its own internal signature, which is different from the signature of the super class, but when getSignature is changed to return the local signature then a test in CoarseToFineParserTest fails:

testPtb(de.up.ling.irtg.automata.coarse_to_fine.CoarseToFineParserTest) Time elapsed: 0.025 sec <<< ERROR! java.lang.NegativeArraySizeException

the problems seems to be that a certain grammar can no longer be read in in binary format. Returning the correct signature would be better, in case one needs to work with it.