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

TAG grammars with weird closing brackets #44

Closed
alexanderkoller opened this issue May 2, 2019 · 0 comments
Closed

TAG grammars with weird closing brackets #44

alexanderkoller opened this issue May 2, 2019 · 0 comments
Labels

Comments

@alexanderkoller
Copy link
Contributor

When a tulipac grammar has extra closing brackets, it is silently read, but no sentences can be parsed. The grammar below should parse "der mann ruht", but does not.

family alphaintrans: { intrans1, intrans2, intrans3 }

tree intrans1:
  S {
    NP![case=nom] []
    V+ 
    }

tree intrans2:
  S {
    V+
    NP![case=nom] [] 
    }

tree intrans3:
  S {
    D! [] []
    NP![case=nom] []
    V+ 
    }
}

word 'schl"ä"ft': <alphaintrans> 
word 'ruht': <alphaintrans> 

tree d:
  D+

tree np_n:
  NP[][case=?case, gen=?gen] {
    Det! [case=?case, gen=?gen] []
    N+   [case=?case, gen=?gen] []
  }

tree aux_adj:
  N [][case=?case, gen=?gen] {
    Adj+ [case=?case, gen=?gen, art=?a][]
    N* [case=?case, art=?a][]
  }
    
tree det:
  Det+

word 'mann': np_n[case=nom, gen=m]
word 'mann': np_n[case=acc, gen=m]
word 'mann': np_n[case=dat, gen=m]

word 'der': det[case=nom, gen=m,art=bes]
word 'ein': det[case=nom, gen=m,art=unb]

lemma 'blond': aux_adj {
  word 'blonde': [case=nom]
  word 'blondes': [case=nom, art=unb, gen=n]
  word 'blonden': [case=dat]
  word 'blonde': [case=acc, art=bes, gen=n]
  word 'blondes': [case=acc, art=unb, gen=n]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant