mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-02 07:42:50 -06:00
bracketing with tree node reference: l -bracket
This commit is contained in:
@@ -4,7 +4,8 @@ module PGF.ShowLinearize (
|
||||
recordLinearize,
|
||||
termLinearize,
|
||||
tabularLinearize,
|
||||
allLinearize
|
||||
allLinearize,
|
||||
markLinearize
|
||||
) where
|
||||
|
||||
import PGF.CId
|
||||
@@ -89,6 +90,10 @@ recLinearize pgf lang tree = mkRecord typ $ linTree pgf lang tree where
|
||||
termLinearize :: PGF -> CId -> Tree -> String
|
||||
termLinearize pgf lang = show . linTree pgf lang
|
||||
|
||||
-- show bracketed markup with references to tree structure
|
||||
markLinearize :: PGF -> CId -> Tree -> String
|
||||
markLinearize pgf lang t = concat $ take 1 $ linearizesMark pgf lang t
|
||||
|
||||
|
||||
-- for Morphology: word, lemma, tags
|
||||
collectWords :: PGF -> CId -> [(String, [(String,String)])]
|
||||
|
||||
Reference in New Issue
Block a user