first incarnation of the bracketed string API

This commit is contained in:
krasimir
2010-04-30 14:36:06 +00:00
parent a25442639c
commit 83528f15d7
12 changed files with 632 additions and 468 deletions

View File

@@ -46,7 +46,10 @@ translationList mex mprobs pgf ig og typ number = do
return $ map mkOne $ ts
where
mkOne t = (norml (linearize pgf ig t), map (norml . linearize pgf og) (homonyms t))
homonyms = nub . parse pgf ig typ . linearize pgf ig
homonyms t =
case (fst . parse pgf ig typ . linearize pgf ig) t of
ParseResult ts -> ts
_ -> []
morphologyList ::
Maybe Expr -> Maybe Probabilities ->