1
0
forked from GitHub/gf-core

command tb for creating treebanks

This commit is contained in:
aarne
2006-02-08 10:18:00 +00:00
parent 85910ef776
commit 98b24d0e33
7 changed files with 93 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ import qualified GF.Canon.CMacros as CMacros
import qualified GF.Compile.GrammarToCanon as GrammarToCanon
import GF.Grammar.Values
import GF.UseGrammar.GetTree
import GF.UseGrammar.Treebank
import GF.Shell.ShellCommands
@@ -289,6 +290,11 @@ execC co@(comm, opts0) sa@(sh@(st,(h,_,_,_)),a) = checkOptions st co >> case com
_ -> Nothing
returnArg (ATrms $ generateTrees opts gro mt) sa
CTreeBank -> do
let ts = strees $ s2t $ snd sa
comm = "command" ----
justOutput opts (mkTreebank opts st comm ts) sa
CShowTreeGraph | oElem emitCode opts -> do -- -o
returnArg (AString $ visualizeTrees opts $ strees $ s2t a) sa
CShowTreeGraph -> do