Skip to content

UCSD-Language-and-Cognition-Lab/nlm-fb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Can NLMs explain the effect of false belief on human comprehenders?

Overview

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.

GPT-3 Surprisal

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.

Behavioral Experiment

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}).

Stastical Analysis

Cleaned data from the experiment is contained in data/clean. R code to analyse the data is contained in stats/.

About

Are Neural Language Models sensitive to false belief?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages