I'm writing up a semantic fcfg file of my own and I have this grammar rule:
NP -> DT NNP NNP NNP
I wanted to write this particular rule with semantic extenstion so something like this:
NP[NUM=?n,SEM = <?det(?nnp?nnp?nnp)>] -> DT[NUM=?n,SEM=?det] NNP[NUM=?n,SEM=?nnp] NNP[NUM=?n,SEM=?nnp] NNP[NUM=?n,SEM=?nnp]
I tried parsing this rule with this sentence:
The(det) Orlando(NNP) Magic(NNP) City(NNP)
It doesnt work?