Maximum Entropy with Hidden Structure in R
R support for various batch and online computations in Maximum Entropy Harmonic Grammar. Used to find MaxEnt solutions for learning problems (with or without hidden structure), generate distributions over forms in different theories, and perform associated learning tasks.
- Install R (https://cran.rstudio.com/)
- Clone repository (e.g.
git clone [email protected]:rstaubs/maxent-hidden-structure.git) - Open repository in R environment of choice (e.g., RStudio https://posit.co/download/rstudio-desktop/)
Examples are shown in the examples directory:
base- Example driver file and data files for parallel MaxEnt (with and without hidden structure)serialExample driver file and data files for serial MaxEnt
The gradients used in this optimization are derived here: https://websites.umass.edu/hgr/files/2017/07/klnotes.pdf
Staubs, Robert. 2011. Harmonic Grammar in R (hgR). Software package. Amherst, MA: University of Massachusetts Amherst. https://github.com/rstaubs/maxent-hidden-structure