summaryrefslogtreecommitdiff
path: root/src/GF/Speech/TransformCFG.hs
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-03-20 22:09:17 +0000
committerbringert <bringert@cs.chalmers.se>2007-03-20 22:09:17 +0000
commit7ae2e0167889e6fde45fcd175d3dfab0029f973a (patch)
tree6dca582ff723888669f7401139e06342330c8e08 /src/GF/Speech/TransformCFG.hs
parent00e681aee886c3b12acbaf07068571238a955ed2 (diff)
Remove removeIdenticalRules, since it would get rid of alternative parse results.
Diffstat (limited to 'src/GF/Speech/TransformCFG.hs')
-rw-r--r--src/GF/Speech/TransformCFG.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/GF/Speech/TransformCFG.hs b/src/GF/Speech/TransformCFG.hs
index 1439cc09d..232239b20 100644
--- a/src/GF/Speech/TransformCFG.hs
+++ b/src/GF/Speech/TransformCFG.hs
@@ -112,14 +112,6 @@ topDownFilter start rules = filter ((`Set.member` keep) . fst) rules
uses = reflexiveClosure_ (allCats rules) $ transitiveClosure $ mkRel rhsCats
keep = allRelated uses start
--- | Remove rules which have the same rhs.
--- FIXME: this messes up probabilities, names and profiles
-removeIdenticalRules :: CFRules -> CFRules
-removeIdenticalRules g = [(c,sortNubBy cmpRules rs) | (c,rs) <- g]
- where
- cmpRules (CFRule c1 ss1 _) (CFRule c2 ss2 _) =
- mconcat [c1 `compare` c2, ss1 `compare` ss2]
-
-- * Removing left recursion
-- The LC_LR algorithm from