vp -showdep: as default label for the first (incl. only) argument, don't use dep#0 but assume it is the head

This commit is contained in:
aarne
2015-11-05 08:30:13 +00:00
parent eb49b6ab56
commit e97fa30c9d

View File

@@ -300,8 +300,8 @@ graphvizBracketedString opts mbl tree bss = render graphviz_code
"head" -> ""
l -> l
_ -> argLabel fun arg
argLabel fun arg = "dep#" ++ show arg --showCId fun ++ "#" ++ show arg
argLabel fun arg = if arg==0 then "" else "dep#" ++ show arg --showCId fun ++ "#" ++ show arg
-- assuming the arg is head, if no configuration is given; always true for 1-arg funs
mkLeafNode cat word
| noDep opts = word --- || not (noCat opts) -- show POS only if intermediate nodes hidden
| otherwise = posCat cat ++ "\n" ++ word -- show POS in dependency tree