Explanation: Compositional semantics is the process of determining the meaning of P*Q from P, Q and *. 4. What is used to augment a grammar for arithmetic expression with semantics?
A. Notation
B. DCG (definite clause grammar) notation
C. Constituent
D. All of the mentioned
Answer:A
Explanation: Compositional semantics is the process of determining the meaning of P*Q from P, Q and *. 4. What is used to augment a grammar for arithmetic expression with semantics?
A. Notation B. DCG (definite clause grammar) notation C. Constituent D. All of the mentioned
Explanation: DCG (definite clause grammar) notation is used to augment a grammar for arithmetic expression with semantics and it is used to build a parse tree. 5. What can’t be done in the semantic interpretation?