← Software & Corpora

MaxEnt with Hidden Structure in R

Overview

This is an interactive Shiny application designed to help linguists generate phonological grammars (weights) using a Maximum Entropy model. The app is built on top of the HGR model developed by Staubs (2011). HGR finds solutions for learning problems (with or without hidden structure), generates distributions over forms, and performs online learning simulations.

Launch the app ↗

User Guide

Input file format

The input file should be a CSV or TXT file with the following columns:

Using the Shiny app

  1. Upload your data file. Use the "Choose Input File" button to upload a CSV or TXT file.
  2. Select input type. Choose between "Probabilities" and "Raw Frequencies".
  3. Select prior type. Choose between L2 and L1.
  4. Generate grammar. Click "Generate Grammar" to produce the grammar.
  5. Edit constraint weights. If needed, adjust weights in the dynamic UI and click "Update Grammar" to recalculate probabilities and errors.
  6. Download outputs. Use the "Download Output" button to save the generated tableau.

Sample input files

The Shiny app includes three sample input files, available here. They illustrate different scenarios — with and without hidden structure, and candidates supplied as raw frequencies rather than normalized probabilities. These files can be uploaded directly into the app.

Citations

Acknowledgments

This research was supported by the National Science Foundation grant BCS-2140826 to the University of Massachusetts Amherst.