alecbrick / psych204

PSYCH 204 project - Pronoun resolution with RSA.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSYCH 204 project. The goal is to determine who pronouns refer to using the RSA framework.

"first_approach.js" is my initial implementation, and has no helper files. You can run it with "webppl first_approach.js".

"world_edit.js" is the approach that modifies an existing common world, and relies on "meaning.js". You can run that file with "webppl world_edit.js --require .". Making modifications to the initial setup requires a lot of tweaking of this file, but you should be able to replace the sentence that the listener hears, provided that it's in the utterance list. You can also uncomment the speaker and literal listener (provided that the others are commented out) in order to see how they perform. The speaker takes a world as its input, and I use testWorld for that.

A great deal of this code comes from The Design and Implementation of Probabilistic Programming Languages, and provided a much-needed starting point for my project.

About

PSYCH 204 project - Pronoun resolution with RSA.


Languages

Language:JavaScript 100.0%