Assignment 3

Disclaimer: Dieser Thread wurde aus dem alten Forum importiert. Daher werden eventuell nicht alle Formatierungen richtig angezeigt. Der ursprüngliche Thread beginnt im zweiten Post dieses Threads.

Assignment 3
Dear all,

as discussed in the lecture today, we will have another homework assignment – the third one --, which will be due next week on Tuesday (2020-12-22).
Assignment 2, which should be much harder, will only be due in January.

Assignment 3
Extend the implementation of fragment 1 to allow for more complex verb phrases (this corresponds to fragment 3 in the lecture slides but you shouldn’t add pronouns).

You can use the [m]fragment1-minimal.ipynb[/m] notebook as a starting point.

Concretely, you should extend the grammar and semantics construction to allow for sentences like

  • Ethel laughs and runs ⤳ laugh ethel ∧ run ethel
  • Ethel poisons the dog and laughs and runs ⤳ poison ethel dog ∧ laugh ethel ∧ run ethel
  • Ethel doesn’t laugh and run ⤳ ¬(laugh ethel ∧ run ethel)
  • Ethel kicks the dog or laughs ⤳ kick ethel dog ∨ laugh ethel
  • Ethel doesn’t poison the dog and Prudence runs and laughs ⤳ ¬ poison ethel dog ∧ (run prudence ∧ laugh prudence)

But you shouldn’t allow sentences like

  • Ethel doesn’t doesn’t run
  • Ethel doesn’t runs
  • Ethel run