Remove removeIdenticalRules, since it would get rid of alternative parse results.

This commit is contained in:
bringert
2007-03-20 22:09:17 +00:00
parent fe73354cc6
commit 0eac3f6b58
3 changed files with 0 additions and 10 deletions

View File

@@ -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