mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-06-24 02:31:06 -06:00
Separate .trees and .treebank, and add a script for making the latter from the former
This commit is contained in:
@@ -34,7 +34,7 @@ doGrammar gname = do
|
||||
lpgf <- readLPGF $ gname ++ ".lpgf"
|
||||
|
||||
-- Read treebank
|
||||
gs <- groups . lines <$> readFile (dir </> gname <.> "trees")
|
||||
gs <- groups . lines <$> readFile (dir </> gname <.> "treebank")
|
||||
forM_ gs $ \grp -> do
|
||||
let ast = drop 2 $ dropWhile (/=':') $ head grp
|
||||
printf "%s: %s\n" gname ast
|
||||
|
||||
Reference in New Issue
Block a user