Commit Graph

66 Commits

Author SHA1 Message Date
aarne
b447cf1a04 new GFCC concrete syntax in place everywhere 2007-12-13 20:19:47 +00:00
aarne
48623470cd gf works with the new gfcc format 2007-10-05 12:54:29 +00:00
bringert
da6e0efc11 CFRules tracing. 2007-06-28 01:26:09 +00:00
bringert
af45f33d51 bottom-up and top-down filtering do not need fix point iteration. 2007-06-27 17:46:34 +00:00
bringert
af36dcf13d Refactor TransformCFG: use Map for CFRules. 2007-06-27 17:22:59 +00:00
bringert
bb09506ece Make bottomUpFilter better by also removing categories which contain no finite strings. 2007-06-27 16:27:55 +00:00
bringert
2b63a89569 Some refactorings needed for recursion removal. 2007-06-25 13:38:40 +00:00
bringert
16bfb1250b Added makeSRG. 2007-06-21 13:40:13 +00:00
bringert
5faf418f4e Fixed SISR bug. 2007-03-26 13:12:04 +00:00
bringert
de0ca9f533 commented LC_LR modification 2007-03-25 16:34:53 +00:00
bringert
4490e256a8 Also remove indirectly cyclic productions. 2007-03-25 16:34:35 +00:00
bringert
85072fb6b2 Added srg0006: A grammar with a cycle caused by an empty production. 2007-03-25 16:11:51 +00:00
bringert
ed1e7f4485 SRG generation: merge categories with identical set of productions. The LC_LR algorithm produces lots of those, especially when there is little inflection. 2007-03-24 23:29:38 +00:00
bringert
4fdc0b598a Modified the LC_LR implementation to only produce rules using A-X categories when those categories have any productions. 2007-03-24 17:30:04 +00:00
bringert
7ae2e01678 Remove removeIdenticalRules, since it would get rid of alternative parse results. 2007-03-20 22:09:17 +00:00
bringert
50614d399a Do top-down and bottom-up filtering together to a fixed point. 2007-03-20 21:59:36 +00:00
bringert
fa33c22e07 Moved code and comments around in TransformCFG. 2007-03-20 21:35:24 +00:00
bringert
a8d356d599 Renamed removeEmptyCats to bottomUpFilter. 2007-03-20 21:15:59 +00:00
bringert
fbe8282027 Removed dead export list. 2007-03-20 21:15:43 +00:00
bringert
2230a28e21 Removed fixed FIXMEs. 2007-03-20 21:15:26 +00:00
bringert
3dacf21a41 Use makeSimpleSRG everywhere and remove makeSRG. Reimplemented top-down filtering in terms of CFRules instead of SRG. Do top-down filtering in makeSimpleSRG. 2007-03-19 18:03:19 +00:00
bringert
a24166ac25 Handle coercion functions (_) in CFG generation for SRG. 2007-01-29 12:30:49 +00:00
bringert
32d94e908c Removed CFConst constructor, since it was unused. 2007-01-29 12:21:15 +00:00
bringert
fef4d56e71 Document CFTerm constructors. 2007-01-29 12:20:31 +00:00
bringert
090bb30466 Generate more compact JSGF by converting to ENBF. 2007-01-07 20:04:39 +00:00
bringert
efb806f226 SISR code now type annotates meta variables directly in grammar, to avoid a separate type annotation step. 2007-01-05 17:34:44 +00:00
bringert
6ee7296f9d Changed all SRG printer to take Options and StateGrammar arguments. This makes Custom a lot cleaner. 2007-01-05 15:38:47 +00:00
bringert
741dde5a2a Change input to the different SRG printers to be StateGrammar instead of CGrammar. This to allow looking at the types in SISR, and to reduce the number of argument passed from Custom. 2007-01-05 14:34:20 +00:00
bringert
7577149241 SISR: constants from conversion=finite now produce abstract syntax nodes instead of strings. 2007-01-03 22:57:20 +00:00
bringert
a335b29c0a Meta variables are now treated as functions with name ? in SISR, VoiceXML and JavaScript linearization. VoiceXML now returns the partial result when update() is false. 2006-12-21 16:48:46 +00:00
bringert
f9621483a0 Use LCLR algorithm for eliminating left-recursion, with lambda terms in SISR for getting trees right. 2006-12-20 20:10:15 +00:00
bringert
c7df9f4167 Added still unused implementation of Moore's LCLR algorithm for left recursion elimination. Fixed top category generation for SRG (included LR-elimination-added categories before). 2006-12-17 19:18:28 +00:00
bringert
f252bb6090 Some clean-up in GF/Speech/TransformCFG.hs 2006-12-17 13:29:12 +00:00
bringert
a663a046ed Look at both command-line and grammar startcat falgs in pg commands. 2006-04-18 12:42:20 +00:00
bringert
6eac1e2be2 Fixed left recursion removal to not create cyclic rules. 2006-04-13 15:07:17 +00:00
bringert
dbfef31538 Removed cycles when building SRGs, to avoid getting left-recursive grammars. 2006-04-13 14:47:37 +00:00
bringert
c5d0416996 generate unique new category names when removing left recursion from cfgs. 2006-04-13 14:29:27 +00:00
bringert
19af3254dc Replaced all used of Data.FiniteMap with Data.Map. 2006-03-20 12:49:31 +00:00
bringert
fd0dfd7d4d First version of SRGS with semantic tags. 2006-02-01 16:23:14 +00:00
bringert
92f22c8f5c Use right start category names in si command. 2006-01-20 18:20:02 +00:00
bringert
a4ba93cc55 Build SLF networks with sublattices. 2006-01-04 21:41:12 +00:00
bringert
e32472a9bb Some performance improvements in the FA generation. 2005-12-22 23:16:15 +00:00
bringert
928c84b36c Documented SRGS XML generation. Started working on support for probabilities in SRG generation. Added support for probabilities in for SRGS. 2005-11-01 19:09:04 +00:00
bringert
f3bd409b1b Made removeIdenticalRules faster by using sortNubBy instead of nubBy. 2005-10-26 17:47:16 +00:00
bringert
a8bc5590af Added Graphviz module for graphviz stuff. Move a lot of utility functions to GF.Data.Utilities. 2005-09-14 14:17:29 +00:00
bringert
01ef25792c Added printer for regular grammars. Changed some foldrs to foldls to improve stack usage. 2005-09-12 15:10:23 +00:00
bringert
ddda900d53 Completed unoptimized SLF generation. 2005-09-12 14:46:44 +00:00
bringert
aa92464b1c More work on make_fa. 2005-09-08 14:45:17 +00:00
bringert
832a2219c5 Started working on make_fa. 2005-09-08 14:40:49 +00:00
bringert
9508120dd1 Defined compileAutomaton in terms of make_fa 2005-09-08 14:39:12 +00:00