Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
examples
README.md
agenda.py
cfg.py
item.py
lab-cfg.ipynb
lab-cky.ipynb
lab-inference.ipynb
parser.py
rule.py
symbol.py
util.py

README.md

Code base for June project on PCFG sampling.

You should check the labs in this order

  • CFG
  • CKY
  • Inference

You can also import basic data structures from the several python modules.

We now have two grammars for performing arithmetic operations: one that is unambiguous and an ambiguous one. Follow lab-inference to learn more about interesting problems involving ambiguous PCFGs.

Dependencies

You will need to install nltk to visualise trees.

    sudo pip install nltk