Implementation of Recursive Constraint Demotion (Tesar & Smolensky 2000)
The script can be run directly from the command line. The script takes as an argument the name of a .csv
file and prints the stratified ranking.
The input file should be of a form seen in typical OTSoft format. See the examples (e.g. feeding_interaction.csv
or palatalization.csv
) for more specifics.
In order to see the code in action, pull the code and type the following command in the command line:
python3 RCD.py palatalization.csv
The code has not been fully tested, so please contact me if there are any outstanding bugs.
[1] Tesar, B., & Smolensky, P. (2000). Learnability in optimality theory. Mit Press.