Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the indefinite article "an" #4

Open
normundsg opened this issue Apr 16, 2013 · 0 comments
Open

Problems with the indefinite article "an" #4

normundsg opened this issue Apr 16, 2013 · 0 comments

Comments

@normundsg
Copy link

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant