From f916352116bb2d3c3caf7aa38e8fe585f2f2150e Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 8 Feb 2006 21:58:36 +0000 Subject: testing treebanks --- src/GF/Shell/HelpFile.hs | 11 +++++++---- src/GF/Shell/ShellCommands.hs | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/GF/Shell') diff --git a/src/GF/Shell/HelpFile.hs b/src/GF/Shell/HelpFile.hs index 14c87e621..5764e9f14 100644 --- a/src/GF/Shell/HelpFile.hs +++ b/src/GF/Shell/HelpFile.hs @@ -230,11 +230,14 @@ txtHelpFile = "\n p -lang=Cncdecimal \"123\" | at num2bin | l -- convert dec to bin" ++ "\n" ++ "\ntb, tree_bank: tb" ++ - "\n Generate a multilingual treebank from a list of trees." ++ - "\n flags:" ++ - "\n -xml wrap the treebank with XML tags" ++ + "\n Generate a multilingual treebank from a list of trees (default) or compare" ++ + "\n to an existing treebank." ++ + "\n options:" ++ + "\n -c compare to existing xml-formatted treebank" ++ + "\n -xml wrap the treebank (or comparison results) with XML tags" ++ "\n examples:" ++ - "\n gr -cat=S -number=100 | tb" ++ + "\n gr -cat=S -number=100 | tb -xml | wf tb.xml -- random treebank into file" ++ + "\n rf tb.txt | tb -c -- read comparison treebank from file" ++ "\n" ++ "\ntt, test_tokenizer: tt String" ++ "\n Show the token list sent to the parser when String is parsed." ++ diff --git a/src/GF/Shell/ShellCommands.hs b/src/GF/Shell/ShellCommands.hs index 935b0be09..7d10ef882 100644 --- a/src/GF/Shell/ShellCommands.hs +++ b/src/GF/Shell/ShellCommands.hs @@ -183,7 +183,7 @@ optionsOfCommand co = case co of CGenerateRandom -> both "cf prob" "cat lang number depth" CGenerateTrees -> both "metas" "atoms depth alts cat lang number" CPutTerm -> flags "transform number" - CTreeBank -> opts "xml" + CTreeBank -> opts "c xml" CWrapTerm _ -> opts "c" CApplyTransfer _ -> flags "lang transfer" CMorphoAnalyse -> both "short" "lang" -- cgit v1.2.3