mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 12:12:51 -06:00
Do top-down and bottom-up filtering together to a fixed point.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user