Skip to content

spascience/pcfg-generator

Repository files navigation

PCFG generator

This tool inputs a custom probabilistic context-free grammar (PCFG) and computes information-theoretic metrics (e.g. suprisal) within a sentence. Originally crafted to support projects such as (Cho & Lewis, 2019).

See PCFG_Simulator_Tutorial.ipynb for more details. Currently the tool does not handle grammars with mutual recursion and there is an issue with calculating the KL divergence.

About

tool for analyzing custom PCFGs with information theory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published