mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
Filter out record fields which don't exist in lintype
This is to work around an inconsistency in the canonical representation
This commit is contained in:
@@ -48,11 +48,11 @@ doGrammar' gname cncs = do
|
||||
|
||||
-- Compile LPGF
|
||||
lpgf <- compileToLPGF noOptions mods
|
||||
writeLPGF noOptions lpgf
|
||||
path <- writeLPGF noOptions lpgf
|
||||
putStrLn ""
|
||||
|
||||
-- Read back from file
|
||||
lpgf <- readLPGF $ gname ++ ".lpgf"
|
||||
lpgf <- readLPGF path
|
||||
|
||||
-- Read treebank
|
||||
gs <- groups . lines <$> readFile (dir </> gname <.> "treebank")
|
||||
|
||||
Reference in New Issue
Block a user