forked from newsreader/NAF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunks.tex
More file actions
70 lines (64 loc) · 1.48 KB
/
chunks.tex
File metadata and controls
70 lines (64 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
\section{Chunks}
\label{sec:chunks}
Chunks are noun or prepositional phrases, spanning terms.\\
The \texttt{<chunk>} element has the following attributes:
\begin{itemize}
\item \texttt{id} (\textbf{required}): unique identifier, starting with the prefix ``c''.
\item \texttt{head} (\textbf{required)}: the id of the chunk's head.
\item \texttt{phrase} (optional): type of the phrase.
\item \texttt{case} (optional): declension case.
\end{itemize}
Example of chunk annotations:
\begin{Verbatim}[fontsize=\small]
<chunks>
<!-- John -->
<chunk id="c1" head="t1" phrase="NP">
<span>
<target id="t1"/>
</span>
</chunk>
<!-- taught -->
<chunk id="c2" head="t2" phrase="V">
<span>
<target id="t2"/>
</span>
</chunk>
<!-- Mathematics -->
<chunk id="c3" head="t3" phrase="NP">
<span>
<target id="t3"/>
</span>
</chunk>
<!-- 20 minutes -->
<chunk id="c5" head="t5" phrase="NP">
<span>
<target id="t4"/>
<target id="t5"/>
</span>
</chunk>
<!-- every -->
<chunk id="c6" head="t6" phrase="R">
<span>
<target id="t6"/>
</span>
</chunk>
<!-- every Monday -->
<chunk id="c7" head="t7" phrase="NP">
<span>
<target id="t6"/>
<target id="t7"/>
</span>
</chunk>
<!-- in New York -->
<chunk id="c9" head="t9" phrase="PP">
<span>
<target id="t8"/>
<target id="t9"/>
</span>
</chunk>
</chunks>
\end{Verbatim}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "naf"
%%% End: