Skip to content

Commit

Permalink
Documented Statement Annotation (Attribution). (issue #17)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 10, 2016
1 parent cb11ebd commit f04df99
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
Binary file modified docs/folia.pdf
Binary file not shown.
61 changes: 60 additions & 1 deletion docs/folia.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2400,7 +2400,7 @@ \subsection{Coreference Relations}
\end{lstlisting}
\end{declaration}

\subsection{Observations}
\subsection{Observation Annotation}
\label{sec:observations}

\status{since v1.3}{pynlpl}
Expand Down Expand Up @@ -2520,7 +2520,66 @@ \subsection{Sentiment Analysis}
\end{lstlisting}
\end{declaration}

\subsection{Statement Annotation (Attribution)}
\label{sec:observations}

\status{since v1.3}{pynlpl}

The span annotation element \texttt{statement} allows to decompose statements
into the source of the statement, the content of the statement, and the way
these relate, provided these are made explicit in the text. The element is used
in a \texttt{statements} layer and takes the following span roles:


\begin{itemize}
\item \texttt{hd} -- \textbf{required} -- The head of the statement is the actual content of the statement; this role spans the words containing the statement.
\item \texttt{source} -- \textbf{optional} -- The source/holder of the statement, assuming it is explicitly expressed in the text.
\item \texttt{relation} -- \textbf{optional} -- The relation between the source of the statement and the statement, this usually encompasses verbs like ``to say'', ``to think'', or prepositional phrases such as ``according to''.
\end{itemize}

Consider the following example:

\begin{lstlisting}[language=xml]
<s xml:id="s1">
<w xml:id="s1.w1"><t>They</t></w>
<w xml:id="s1.w2"><t>said</t></w>
<w xml:id="s1.w3"><t>the</t></w>
<w xml:id="s1.w4"><t>hotel</t></w>
<w xml:id="s1.w5"><t>was</t></w>
<w xml:id="s1.w6"><t>a</t></w>
<w xml:id="s1.w7"><t>nightmare</t></w>
<w xml:id="s1.w8"><t>.</t></w>
<statements>
<statement class="said">
<source>
<wref id="s1.w1" />
</source>
<hd>
<wref id="s1.w3" />
<wref id="s1.w4" />
<wref id="s1.w5" />
<wref id="s1.w6" />
<wref id="s1.w7" />
</hd>
<relation>
<wref id="s1.w2" />
</relation>
</statement>
</statements>
</s>
\end{lstlisting}

Whether the statement's class, if used at all, expresses the relationship like in the example, or has more direct bearing on the statement itself, is of course up to the set used.
Further set-dependent properties can be associated with any observation using FoLiA's feature mechanism (see Section~\ref{sec:features}).


\begin{declaration}
\begin{lstlisting}[language=xml]
<annotations>
<statement-annotation set="http://url/to/your/set" />
</annotations>
\end{lstlisting}
\end{declaration}

\section{Morphological Annotation}

Expand Down

0 comments on commit f04df99

Please sign in to comment.