Do top-down and bottom-up filtering together to a fixed point.

This commit is contained in:
bringert
2007-03-20 21:59:36 +00:00
parent fa33c22e07
commit 50614d399a
2 changed files with 5 additions and 7 deletions

View File

@@ -96,8 +96,7 @@ makeSimpleSRG opt s =
l = fmap (replace '_' '-') $ getOptVal opts speechLanguage
(cats,cfgRules) = unzip $ preprocess $ cfgToCFRules s
preprocess = removeLeftRecursion origStart
. bottomUpFilter
. topDownFilter origStart
. fix (topDownFilter origStart . bottomUpFilter)
. removeIdenticalRules
. removeCycles
names = mkCatNames name cats