This code implements an ACT-R based serial parser with re-analysis using a CCG inspired grammar formalism. The code can also be used to generate priming predictions for a comprehension-to-production priming paradigm.
In most cases, applying SPAWN to other phenomena will not require modifying the following files:
The model class with ACT-R based methods for memory retrieval and activation updates.
This includes the algorithsm for parsing, supertagging + combining, and re-analysis.
Implementation of CCG rule application with the six CCG application rules + type raising.
The following files contain code for the specific set of experiments described in chapter 2 of this dissertation. In most cases, applying SPAWN to other phenomena will require modifying these files.
Specifying the declarative memory (i.e. "grammar" and "vocabulary").
Templates to create data to train SPAWN models.
Code to train models on a pre-tokenized corpus where tokens are separated by space. All model hyperparameters are specified in this file.
Code to evaluate and "adapt" or "fine-tune" already trained models.