Description
- When parsing a sentence that contains the indefinite article "an", the parser fails.
E.g. parser.parse("every university is an organization .").getTrees() returns an empty array.
- When trying to linearize a tree that should result in a sentence with the indefinite article "an", the linearizer throws an exception.
E.g. parser.parse("every university is a organization .").getTrees() returns a parse tree,
however linearizer.linearizeString(tree[0]) throws
java.lang.ArrayIndexOutOfBoundsException: 2
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:300)
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:311)
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:311)
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:311)
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:311)
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:311)
at org.grammaticalframework.Linearizer.untokn(Linearizer.java:311)
at org.grammaticalframework.Linearizer.renderLin(Linearizer.java:325)
at org.grammaticalframework.Linearizer.linearizeString(Linearizer.java:65)
I suppose this is due to the specific a/an handling in the English resource grammar.