Skip to content

Problems with the indefinite article "an" #4

Open
@normundsg

Description

@normundsg
  1. 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.

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions