Tree syntax accepted by the slant-applet
This page describes the current supported syntax for the corpus files.
The syntax notation should be read as:
a - term is required.
<a> - variable, replace with appropriate term.
{a} - a is optional
{a}* - zero or more a's can be placed here.
\t - tabulator (ASCII code 9)
Simple tree - unique analysis
Syntax
Source: <source of information>
<label> <sentence>
A1
{=}*<FUNCTION>:<form>{\t<word>}
Example 1:
Source | Tree |
KILDE: ELEMENTÆR SÆTNINGSANALYSE
NF37) Han hedder Ole. (3.1.a)
A1
STA:cl
S:pron Han
P:v(fin) hedder
Cs:n Ole
.
| |
Ambiguous tree - One node (function/form)
Syntax
{=}*<FUNCTION1>/<FUNCTION2>:<form>{\t<word>}
{=}*<FUNCTION>:<form1>/<form2>{\t<word>}
{=}*<FUNCTION1>/<FUNCTION2>:<form1>/<form2>{\t<word>}
Example 2 - Source:
Kilde:Dansk sprog,s.94
DS94.7) Der stinker af deodorant overalt
A1
STA:cl
P:v(fin,pres,ind,act) stinker
A/Op:g
=H:prp af
=D:n(com,sg,indef) deodorant
A:adv overalt
Example 2 - Trees:
Analysis 1 | Analysis 2 |
|
|
Ambiguous tree - One node (position)
Syntax
{=}*<FUNCTION1>/<FUNCTION2>[{+|-}<num>]:<form>{\t<word>}
The syntax denotes that the alternative representation is obtained by adding or
subtracting <num> "=" from the "root" representation.
Example 3 - Source:
Kilde:Dansk sprog,s.116
DS116.3) (...) over hans deltagelse i VM-kvalifikationskampene (...) |
A1
STA:cl
...
Od:cl
...
=A/Op:g
==H:prp
==D:g
===D:pron
===H:n
=A/D[+2]:g
==H:prp
==D:n
... |
over
hans
deltagelse
i
VM-kvalifikationskampene
|
Example 3 - Trees:
Analysis 1 | |
Analysis 2 | |
|