ma -status; sep lines for l -all

This commit is contained in:
aarne
2007-03-14 12:11:18 +00:00
parent 98fcad148e
commit f7ce8940fa
8 changed files with 22 additions and 12 deletions

View File

@@ -375,6 +375,7 @@ txtHelpFile =
"\n the results line by line." ++
"\n options:" ++
"\n -short show analyses in bracketed words, instead of separate lines" ++
"\n -status show just the work at success, prefixed with \"*\" at failure" ++
"\n flags:" ++
"\n -lang" ++
"\n examples:" ++

View File

@@ -195,7 +195,7 @@ optionsOfCommand co = case co of
CLookupTreebank -> both "assocs raw strings trees" "treebank"
CWrapTerm _ -> opts "c"
CApplyTransfer _ -> flags "lang transfer"
CMorphoAnalyse -> both "short" "lang"
CMorphoAnalyse -> both "short status" "lang"
CTestTokenizer -> flags "lexer"
CComputeConcrete _ -> both "table" "res"
CShowOpers _ -> flags "res"

View File

@@ -58,7 +58,7 @@ morphoTrainList opts ig number = do
mkOnes gen ts
where
mkOnes gen (t:ts) = do
psss <- ioeErr $ allLinTables gr cnc t
psss <- ioeErr $ allLinTables True gr cnc t
let pss = concat $ map snd $ concat psss
let (i,gen') = randomR (0, length pss - 1) gen
(ps,ss) <- ioeErr $ pss !? i