fixed variants bug in GFCC.Linearize: l. 64,46 'r' must be 'p'

This commit is contained in:
aarne
2007-11-05 21:55:17 +00:00
parent 0c99b0ad08
commit 446d99c370
2 changed files with 2 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ compute mcfg lang args = comp where
proj r p = case (r,p) of
(_, FV ts) -> FV $ lmap (proj r) ts
(FV ts, _ ) -> FV $ lmap (\t -> proj t r) ts
(FV ts, _ ) -> FV $ lmap (\t -> proj t p) ts
(W s t, _) -> kks (s ++ getString (proj t p))
_ -> comp $ getField r (getIndex p)

View File

@@ -363,6 +363,7 @@ compute gfcc lang args = comp where
proj r p = case (r,p) of
(_, FV ts) -> FV $ Prelude.map (proj r) ts
(FV ts, _ ) -> FV $ Prelude.map (\t -> proj t p) ts
(W s t, _) -> kks (s ++ getString (proj t p))
_ -> comp $ getField r (getIndex p)