Analysis and experiment code for a study exploring the extent to which differences in NLM surprisal explain variance in human responses to a false belief task.
The code to elicit predictions from GPT-3 for each stimulus is contained in /src/models/run_gpt3.py
. In order to run this code you will need to add an src/models/gpt3_key.txt
file with an OpenAI API Key.
The experiment code is contained in nlm_fb_expt/
and uses the python Django framework. In order to run the experiment you will need to install Django, include nlm_fb.nlm_fb_expt
in INSTALLED_APPS
,
and include nlm_fb.nlm_fb_expt.urls
in the project's urlpatterns
.
A version of the experiment can be accessed here: https://camrobjones.com/nlm_fb/expt?study=R&item_id=7_fb_1_s_e_im where the GET argument item_id specifies the passage version that the participant sees: ({item}_1_{Knowledge State}_{First Mention}_{Recent Mention}_{Knowledge Cue}).
Cleaned data from the experiment is contained in data/clean
. R code to analyse the data is contained in stats/
.