A new method to return the ambiguous sentence too.
WIP. A first cut of ambigiuity minimiser.
Minor change to to regex for matching Vertical ambiguity string, and also parse each of the ambiguous tree separately so we can build out start rule
[wip] Two changes: 1) A new method for writing CFG; 2) keep running the minimiser certain number of times
Print useful stats
Handle parsing of ambiguous parse when they contain root rules, and a bit of tidy up
Few changes: 1) essentially put all the ambibuity minimisation all in one block ; 2) count no of alternatives for stats
Moved some of the more util methods from AmbiMin
Moved some of the util methods to Utils program
use getopt to handle options for command line
Modify CFG so we can account for symbolic terminals. When symbolic terminals we do not need to quote them.
Useful util functions - printing grammar stats and time-related ones
Removed the duplicate run function created for minimisation. From now on, we use the same run function for sinbad and ambiguity minimisation
Modify sinbad to reflect the change to run function in Backend.py
Just build a list for rule alternatives; we can stringify it later as and when needed
Lots of tidy up. Essentially moved all the minimisation logic to the minimise classes
print if the grammar is ambiguous too
[minimiser] Added ambiguity minimiser modules
[minimiser] Move the find_ambiguity function to Minimiser
Merge pull request #1 from nvasudevan/ambiguity_minimiser

Ambiguity minimiser