1
0
forked from GitHub/gf-core

fix for multiword phrases in Malt format

This commit is contained in:
aarne
2009-10-20 19:27:42 +00:00
parent cf6011d9a6
commit 70b5e2a930

View File

@@ -139,13 +139,13 @@ dependencyTree format debug mlab ms pgf lang exp = case format of
Just (q,l) -> (maybe 0 id (Map.lookup q nodeMap), if null l then rootlabel else l)
_ -> (0,rootlabel)
wnodes = [[show i, unwords ws, showCId fun, pos, pos, morph, show dom, lab, unspec, unspec] |
wnodes = [[show i, maltws ws, showCId fun, pos, pos, morph, show dom, lab, unspec, unspec] |
(i, ((fun,p),ws)) <- tail nodeWords,
let pos = showCId $ lookValCat pgf fun,
let morph = unspec,
let (dom,lab) = lookDomLab p
]
maltws = concat . intersperse "+" . words . unwords -- no spaces in column 2
unspec = "_"
rootlabel = "ROOT"