| 1 |
%frog manual rev 0.1 |
| 2 |
\documentclass{book} |
| 3 |
|
| 4 |
\usepackage{epsf} |
| 5 |
\usepackage{epsfig} |
| 6 |
\usepackage{a4wide} |
| 7 |
\usepackage{palatino} |
| 8 |
\usepackage{fullname} |
| 9 |
\usepackage{url} |
| 10 |
\usepackage[utf8]{inputenc} |
| 11 |
\usepackage{amsmath} |
| 12 |
\usepackage{graphicx} |
| 13 |
\usepackage{multicol,lipsum} |
| 14 |
\usepackage[bottom=2cm,top=2cm,left=2cm,right=2cm]{geometry} |
| 15 |
\usepackage{covington} |
| 16 |
% * <[email protected]> 2016-01-29T14:32:44.513Z: |
| 17 |
% timbl manual is : https://www.overleaf.com/1292125vnpfbk |
| 18 |
% ^. |
| 19 |
|
| 20 |
\begin{document} |
| 21 |
%\maketitle |
| 22 |
|
| 23 |
\begin{titlepage} |
| 24 |
\begin{center} |
| 25 |
|
| 26 |
|
| 27 |
\vspace{115pt} |
| 28 |
\textbf{\huge{Frog} |
| 29 |
\ \\ |
| 30 |
\vspace{30pt} |
| 31 |
\Large{A Natural Language Processing Suite for Dutch |
| 32 |
}}\\ %proycon: ik vind de titel een beetje lang en chaotisch, is 'NLP suite' niet netter? |
| 33 |
\vspace{95pt} |
| 34 |
\textbf{\Large{Version 0.13.1 - FIRST DRAFT REVISION! NOT FINAL!}}\\ %proycon: Beschreven frog versie - revisie versie van documentatie |
| 35 |
\vspace{3,5cm} |
| 36 |
Iris Hendrickx, Antal van den Bosch, Maarten van Gompel, Ko van der Sloot and Walter Daelemans\\ %we kunnen de volgorde nog aanpassen hoor! |
| 37 |
Centre for Language Studies and Centre for Speech and Language Technology, Radboud University\\ |
| 38 |
CLST Technical Report 16-02\\ |
| 39 |
% Welk nr hebben we voor tech report? |
| 40 |
|
| 41 |
\end{center} |
| 42 |
|
| 43 |
\vspace{1cm} |
| 44 |
|
| 45 |
\begin{center} |
| 46 |
\vspace{\fill} |
| 47 |
June 2016 |
| 48 |
\end{center} |
| 49 |
\end{titlepage} |
| 50 |
%%\newpage |
| 51 |
\tableofcontents |
| 52 |
\thispagestyle{empty} |
| 53 |
|
| 54 |
\newpage |
| 55 |
\pagenumbering{arabic} |
| 56 |
|
| 57 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 58 |
|
| 59 |
%(proycon) Omdat overleaf blijkbaar de git history niet synchroniseert met de versie |
| 60 |
%labels, gooi ik de git history hier als commentaar zodat we een beetje zicht |
| 61 |
%hebben op wat er gebeurd is: |
| 62 |
|
| 63 |
%2016-03-23 08:30 Iris Hendrickx o [master] {origin/master} {origin/HEAD} Update on Overleaf. |
| 64 |
%2016-03-15 09:48 Iris Hendrickx o saving some intermediate version |
| 65 |
%2016-03-09 16:54 Iris Hendrickx o Update on Overleaf. |
| 66 |
%2016-03-09 14:56 Iris Hendrickx o Update on Overleaf. |
| 67 |
%2016-03-08 09:56 Anonymous o Update on Overleaf |
| 68 |
%2016-03-08 10:56 Maarten van Gompel o minor fix |
| 69 |
%2016-03-08 10:49 Maarten van Gompel o added FrogOptions in python section |
| 70 |
%2016-03-08 10:44 Maarten van Gompel o ChangeLog |
| 71 |
%2016-03-08 10:43 Maarten van Gompel o Wrote "Using Frog from Python" section |
| 72 |
%2016-03-08 10:15 Maarten van Gompel o moved Using Frog from Python |
| 73 |
%2016-03-08 10:14 Maarten van Gompel o minor fix |
| 74 |
%2016-03-08 09:56 Maarten van Gompel o minor edits in NER section |
| 75 |
%2016-03-07 23:41 Mustafa Erkan Basar o Update on Overleaf. |
| 76 |
%2016-03-07 20:46 Maarten van Gompel o added Server mode section |
| 77 |
%2016-03-07 20:17 Maarten van Gompel o ChangeLog |
| 78 |
%2016-03-07 20:12 Maarten van Gompel o minor changes |
| 79 |
%2016-03-07 20:08 Maarten van Gompel o minor changes |
| 80 |
%2016-03-07 20:03 Maarten van Gompel o added references to frogr and gorf in credit section + link to github issue tracker |
| 81 |
%2016-03-07 19:59 Maarten van Gompel o added Machiel Molenaar and his Go client in the credits |
| 82 |
%2016-03-07 19:57 Maarten van Gompel o removed "please cite" in license, mentioned later already |
| 83 |
%2016-03-07 19:53 Maarten van Gompel o retitled "Example usage of Frog" to "Frog in practice" |
| 84 |
%2016-03-07 19:52 Maarten van Gompel o structure update |
| 85 |
%2016-03-07 19:47 Maarten van Gompel o edited MWU section |
| 86 |
%2016-03-07 19:41 Maarten van Gompel o edited encoding and tokenizer sections |
| 87 |
%2016-03-07 19:37 Maarten van Gompel o interactive mode |
| 88 |
%2016-03-07 19:32 Maarten van Gompel o User guide edits |
| 89 |
%2016-03-07 19:05 Maarten van Gompel o editing quick start guide |
| 90 |
%2016-03-07 18:42 Maarten van Gompel M─┐ Merge branch 'master' of https://git.overleaf.com/4159303gcfrtm |
| 91 |
%2016-03-07 17:22 Anonymous │ o Update on Overleaf. |
| 92 |
%2016-03-07 18:41 Maarten van Gompel o │ installation instructions |
| 93 |
%2016-03-07 18:29 Maarten van Gompel o │ syntax |
| 94 |
%2016-03-07 18:21 Maarten van Gompel M─┘ Merge branch 'master' of https://git.overleaf.com/4159303gcfrtm |
| 95 |
%2016-03-07 17:00 antalvdb │ o Update on Overleaf. |
| 96 |
%2016-03-07 18:20 Maarten van Gompel o │ edited installation section |
| 97 |
%2016-03-07 17:43 Maarten van Gompel o─┘ edited license section (explicit reference to GPL v3) |
| 98 |
%2016-03-07 17:42 Maarten van Gompel o Edited introduction (Frog in 150 words) |
| 99 |
%2016-03-07 17:34 Maarten van Gompel o added Frog version - documentation revision |
| 100 |
%2016-03-07 17:29 Maarten van Gompel o LaTeX source cleanup, no actual content changes yet |
| 101 |
%2016-03-03 13:44 Iris Hendrickx o Update on Overleaf. |
| 102 |
%2016-03-03 13:40 Maarten van Gompel I first shared version iris |
| 103 |
|
| 104 |
|
| 105 |
% % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 106 |
|
| 107 |
|
| 108 |
%todo |
| 109 |
% -toevoegen tabel met alle commandline options |
| 110 |
% - alle config opties in H5 zetten, plus de standaard frog config als een voorbeeld. : char_filter_file gebruikt in: mbma, mblem en de PoS tagger |
| 111 |
\chapter{Introduction} |
| 112 |
|
| 113 |
Frog is an integration of memory-based natural language processing (NLP) |
| 114 |
modules developed for Dutch. Frog performs tokenization, part-of-speech tagging, |
| 115 |
lemmatization and morphological segmentation of word tokens. At the sentence |
| 116 |
level Frog identifies non-embedded phrase chunks in the sentence, recognizes named |
| 117 |
entities and assigns a dependency parse graph. Frog produces output in either FoLiA XML |
| 118 |
or a simple tab-delimited column format with one token per line. All |
| 119 |
NLP modules are based on Timbl, the Tilburg memory-based learning software |
| 120 |
package. Most modules were created in the 1990s at the ILK Research Group |
| 121 |
(Tilburg University, the Netherlands) and the CLiPS Research Centre (University |
| 122 |
of Antwerp, Belgium). Over the years they have been integrated into a single |
| 123 |
text processing tool, which is currently maintained and developed by the |
| 124 |
Language Machines Research Group and the Centre for Language and Speech |
| 125 |
Technology at Radboud University (Nijmegen, the Netherlands). |
| 126 |
|
| 127 |
\chapter{License} |
| 128 |
|
| 129 |
Frog is free and open software. You can redistribute it and/or modify it under |
| 130 |
the terms of the GNU General Public License v3 as published by the Free Software |
| 131 |
Foundation. You should have received a copy of the GNU General Public License |
| 132 |
along with Frog. If not, see \url{http://www.gnu.org/licenses/gpl.html}. |
| 133 |
|
| 134 |
\chapter{Installation} |
| 135 |
|
| 136 |
You can download Frog, manually compile and install it from source. However, |
| 137 |
due to the many dependencies and required technical expertise this is not an |
| 138 |
easy endeavor. |
| 139 |
|
| 140 |
Linux users should first check whether their distribution's package manager has |
| 141 |
up-to-date packages for Frog, as this provides the easiest way of installation. |
| 142 |
|
| 143 |
If no up-to-date package exists, we recommend to use \textbf{LaMachine}. Frog is |
| 144 |
part of our LaMachine software distribution and includes all |
| 145 |
necessary dependencies. It runs on Linux, BSD and Mac OS X. It can also run as |
| 146 |
a virtual machine under other operating systems, including Windows. LaMachine |
| 147 |
makes the installation of Frog straightforward; detailed instructions for |
| 148 |
the installation of LaMachine can be found here: \url{http://proycon.github.io/LaMachine/}. |
| 149 |
|
| 150 |
\section{Manual compilation \& installation} |
| 151 |
|
| 152 |
The source code of Frog for manual installation can be obtained from Github. |
| 153 |
Because of file sizes and to cleanly separate code from data, the data and |
| 154 |
configuration files for the modules of Frog have been packaged separately. |
| 155 |
|
| 156 |
\begin{itemize} |
| 157 |
\item Source code repository: \url{https://github.com/LanguageMachines/frog/} |
| 158 |
%iris: iets met stable release, wat is verschil? |
| 159 |
%proycon: verwerkt: |
| 160 |
\item Stable releases\footnote{The source code repository points to the latest |
| 161 |
development version by default, which may contain experimental |
| 162 |
features. Stable releases are deliberate snapshots of the source |
| 163 |
code. It is recommended to grab the latest stable release.}: |
| 164 |
\url{https://github.com/LanguageMachines/frog/releases/} |
| 165 |
\item Frog data repository: \url{https://github.com/LanguageMachines/frogdata/} (required dependency!) |
| 166 |
\end{itemize} |
| 167 |
|
| 168 |
To compile these manually, you first need current versions of the following |
| 169 |
dependencies of our software, and compile and install them in the order |
| 170 |
specified here: |
| 171 |
|
| 172 |
\begin{itemize} |
| 173 |
\item \texttt{ticcutils}\footnote{\url{https://github.com/LanguageMachines/ticcutils}} - A shared utility library |
| 174 |
\item \texttt{libfolia}\footnote{\url{https://github.com/LanguageMachines/libfolia}}- A library for the FoLiA format |
| 175 |
\item \texttt{ucto}\footnote{\url{https://languagemachines.github.io/ucto}} - A rule-based tokenizer |
| 176 |
\item \texttt{timbl}\footnote{\url{https://languagemachines.github.io/timbl}} - The memory-based classifier engine |
| 177 |
\item \texttt{timblserver}\footnote{\url{https://github.com/LanguageMachines/timblserver}} - For server functionality around Timbl |
| 178 |
\item \texttt{mbt}\footnote{\url{https://languagemachines.github.io/mbt}} - The memory-based tagger |
| 179 |
\end{itemize} |
| 180 |
|
| 181 |
You will also need the following 3rd party dependencies: |
| 182 |
|
| 183 |
\begin{itemize} |
| 184 |
\item \textbf{icu} - A C++ library for Unicode and Globalization support. |
| 185 |
On Debian/Ubuntu systems, install the package \texttt{libicu-dev}. |
| 186 |
\item \textbf{libxml2} - An XML library. On Debian/Ubuntu systems install |
| 187 |
the package \texttt{libxml2-dev}. |
| 188 |
\item A sane build environment with a C++ compiler (e.g.\ gcc or clang), autotools, autoconf-archive, libtool, pkg-config |
| 189 |
\end{itemize} |
| 190 |
|
| 191 |
The actual compilation proceeds by entering the Frog directory and issuing the following |
| 192 |
commands: |
| 193 |
|
| 194 |
\begin{verbatim} |
| 195 |
$ bash bootstrap.sh |
| 196 |
$ ./configure |
| 197 |
$ make |
| 198 |
$ sudo make install |
| 199 |
\end{verbatim} |
| 200 |
|
| 201 |
To install in a non-standard location (\texttt{/usr/local/} by default), you |
| 202 |
may use \\ the \texttt{--prefix=/desired/installation/path/} option. |
| 203 |
|
| 204 |
\chapter{User guide} |
| 205 |
\label{ch-uguide} |
| 206 |
|
| 207 |
Frog aims to automatically enrich Dutch text with linguistic information of various forms. |
| 208 |
Frog integrates several NLP modules that perform the following tasks: tokenize |
| 209 |
text to split punctuation from word forms (including recognition of sentence boundaries and |
| 210 |
multi-word units), assignment of part-of-speech tags, lemmas, and morphological and |
| 211 |
syntactic information to words. |
| 212 |
|
| 213 |
In the next part we first give a brief explanation on running Frog to get you |
| 214 |
started quickly, followed by a more elaborate description of using Frog and how |
| 215 |
to manipulate the settings for each of the separate modules. In Chapter~ |
| 216 |
\ref{ch-bg} we discuss background information of Frog and the detailed |
| 217 |
architecture of the modules. |
| 218 |
|
| 219 |
\section{Quick start guide} |
| 220 |
|
| 221 |
Frog is developed as a command line tool. We assume the reader already has at |
| 222 |
least basic command line skills. |
| 223 |
|
| 224 |
Typing {\tt frog -h} on the command |
| 225 |
line results in a brief overview of all available command line options. Frog is |
| 226 |
typically run on an input document, which is specified using the {\tt -t} option for |
| 227 |
plain text documents, or {\tt -x} for documents in the FoLiA XML format. It is, |
| 228 |
however, also possible to run it interactively or as a server. |
| 229 |
%Ko: in feite is de -t optie (bijna?) nooit nodig |
| 230 |
% frog test.txt werkt ook. Evenals frog *.txt |
| 231 |
We show an example of the output of Frog when processing the contents of a |
| 232 |
plain-text file \texttt{test.txt}, containing just the sentence {\it In '41 werd aan de stamkaart een |
| 233 |
z.g.\ inlegvel toegevoegd.} |
| 234 |
|
| 235 |
We run Frog as follows: {\tt \$ frog -t test.txt } |
| 236 |
|
| 237 |
Frog will present the output as shown in example~\ref{ex-frog-out} below: |
| 238 |
|
| 239 |
\begin{example} |
| 240 |
\label{ex-frog-out} |
| 241 |
\scalebox{0.8}{ |
| 242 |
\begin{tabular}{llllllllll} |
| 243 |
\small |
| 244 |
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10\\ |
| 245 |
1 & In & in & [in] & VZ(init) & 0.987660 & O & B-PP & 0 & ROOT\\ |
| 246 |
2 & '41 & '41 & ['41] & TW(hoofd,vrij) & 0.719498 & O & B-NP & 1 & obj1\\ |
| 247 |
3 & werd & worden & [word] & WW(pv,verl,ev) & 0.999799 & O & B-VP & 0 & ROOT\\ |
| 248 |
4 & aan & aan & [aan] & VZ(init) & 0.996734 & O & B-PP & 10 & mod\\ |
| 249 |
5 & de & de & [de] & LID(bep,stan,rest) & 0.999964 & O & B-NP & 6 & det\\ |
| 250 |
6 & stamkaart & stamkaart & [stam][kaart] & N(soort,ev,basis,zijd,stan) & 0.996536 & O & I-NP & 4 & obj1\\ |
| 251 |
7 & een & een & [een] & LID(onbep,stan,agr) & 0.995147 & O & B-NP & 9 & det\\ |
| 252 |
8 & z.g. & z.g. & [z.g.] & ADJ(prenom,basis,met-e,stan) & 0.500000 & O & I-NP & 9 & mod\\ |
| 253 |
9 & inlegvel & inlegvel & [in][leg][vel] & N(soort,ev,basis,zijd,stan) & 1.000000 & O & I-NP & 10 & obj1\\ |
| 254 |
10 & toegevoegd & toevoegen & [toe][ge][voeg][d] & WW(vd,vrij,zonder) & 0.998549 & O & B-VP & 3 & vc\\ |
| 255 |
11 & . & . & [.] & LET() & 1.000000 & O & O & 10 & punct\\ |
| 256 |
\end{tabular} |
| 257 |
} |
| 258 |
\end{example} |
| 259 |
|
| 260 |
The ten TAB-delimited columns in the output of Frog contain the |
| 261 |
information we list below. This columned output is intended for quick interpretation on |
| 262 |
the terminal or in scripts. It does, however, not contain every detail available to Frog. |
| 263 |
|
| 264 |
\begin{description} |
| 265 |
\item[1. Token number] (Number is reset every sentence.) |
| 266 |
\item[2. Token] The text of the token/word |
| 267 |
\item[3. Lemma] The lemma |
| 268 |
\item[4. Morphological segmentation] A morphological segmentation in which each morpheme is enclosed in square brackets |
| 269 |
\item[5. PoS tag] The Part-of-Speech tag according to the CGN tagset \cite{vanEynde2004}. |
| 270 |
\item[6. Confidence] in the PoS tag, a number between 0 and 1, representing |
| 271 |
the probability mass assigned to the best guess tag in the tag |
| 272 |
distribution |
| 273 |
\item[7. Named entity type] in BIO-encoding\footnote{B (begin) indicates the |
| 274 |
begin of the named entity, I (inside) indicates the continuation of a named |
| 275 |
entity, and O (outside) indicates that something is not a named entity} |
| 276 |
\item[8. Base phrase chunk] in BIO-encoding |
| 277 |
\item[9. Token number of head word] in dependency graph (according to the Frog parser) |
| 278 |
\item[10 Dependency relation type] of the word with head word |
| 279 |
\end{description} |
| 280 |
|
| 281 |
|
| 282 |
For full output, you will want to instruct Frog to output to a FoLiA XML file. |
| 283 |
This is done using the {\tt -X} option, followed by the name of the output |
| 284 |
file. |
| 285 |
|
| 286 |
To run Frog in this way we execute: {\tt \$ frog -t test.txt -X test.xml} |
| 287 |
The result is a file in FoLiA XML format \cite{FOLIAPAPER} that contains all |
| 288 |
information in a more structured and verbose fashion. More information about |
| 289 |
this file format, including a full specification, programming libraries, and |
| 290 |
other tools, can be found on \url{https://proycon.github.io/folia}. We show an |
| 291 |
example of the XML structure for the token {\it aangesneden} in example~\ref{ex-xml-tok} |
| 292 |
and explain the details of this structure in section~\ref{sec-usage}. Each of these layers of linguistic output will be discussed in more detail in the next chapters. |
| 293 |
|
| 294 |
\begin{example} |
| 295 |
\label{ex-xml-tok} |
| 296 |
\begin{verbatim} |
| 297 |
<w xml:id="WP3452.p.1.s.1.w.4" class="WORD"> |
| 298 |
<t>aangesneden</t> |
| 299 |
<pos class="WW(vd,vrij,zonder)" confidence="0.875" head="WW"> |
| 300 |
<feat class="vd" subset="wvorm"/> |
| 301 |
<feat class="vrij" subset="positie"/> |
| 302 |
<feat class="zonder" subset="buiging"/> |
| 303 |
</pos> |
| 304 |
<lemma class="aansnijden"/> |
| 305 |
<morphology> |
| 306 |
<morpheme> |
| 307 |
<t>aan</t> |
| 308 |
</morpheme> |
| 309 |
<morpheme> |
| 310 |
<t>ge</t> |
| 311 |
</morpheme> |
| 312 |
<morpheme> |
| 313 |
<t>snijd</t> |
| 314 |
</morpheme> |
| 315 |
<morpheme> |
| 316 |
<t>en</t> |
| 317 |
</morpheme> |
| 318 |
</morphology> |
| 319 |
</w> |
| 320 |
\end{verbatim} |
| 321 |
\end{example} |
| 322 |
|
| 323 |
\subsubsection{Input and Output options} |
| 324 |
|
| 325 |
By default the output of Frog is written to screen (i.e.\ standard output). |
| 326 |
There are two options for outputting to file (which can also be called simultaneously): |
| 327 |
|
| 328 |
\begin{itemize} |
| 329 |
\item \texttt{-o <filename>} -- Writes columned (TAB delimited) data to file. |
| 330 |
\item \texttt{-X <filename>} -- Writes FoLiA XML to file. |
| 331 |
\end{itemize} |
| 332 |
|
| 333 |
We already saw the input option {\tt -t <filename>} for plain-text files. It is |
| 334 |
also possible to read FoLiA XML documents instead, using the {\tt -x |
| 335 |
<filename>} option. |
| 336 |
|
| 337 |
Besides input of a single plain text file, Frog also accepts a directory of |
| 338 |
plain text files as input {\tt --testdir=<directory> }, which can also be |
| 339 |
written to an output directory with parameter {\tt --outputdir=<dir>}. The |
| 340 |
FoLiA equivalent for {\tt --outputdir} is {\tt --xmldir}. To read multiple |
| 341 |
FoLiA documents, instead of plain-text documents, from a directory, use {\tt -x |
| 342 |
--testdir=<directory>}. |
| 343 |
|
| 344 |
|
| 345 |
\subsection{Interactive Mode} |
| 346 |
|
| 347 |
Frog can be started in an interactive mode by simply typing \texttt{frog} on the command |
| 348 |
line. Frog will present a \texttt{frog>} prompt after which you can type text |
| 349 |
for processing. By default, you will press ENTER at an empty prompt before Frog |
| 350 |
will process the prior input. This allows for multiline sentences to be entered. |
| 351 |
To change this behavior, you may want to start |
| 352 |
Frog with the {\tt -n} option instead, which tells it to assume each input line |
| 353 |
is a sentence. FoLiA input or output is not supported in interactive mode. |
| 354 |
|
| 355 |
To exit this mode, type CTRL-D. |
| 356 |
|
| 357 |
\subsection{Server mode} |
| 358 |
\label{servermode} |
| 359 |
|
| 360 |
Frog offers a server mode that launches it as a daemon to which multiple |
| 361 |
clients can connect over TCP. The server mode is started using the \texttt{-S |
| 362 |
<port>} option. Note that options like \texttt{-n} and \texttt{--skip} are valid in this mode too. |
| 363 |
|
| 364 |
You can for example start a Frog server on port 12345 as follows: \texttt{\$ frog -S 12345}. |
| 365 |
|
| 366 |
The simple protocol clients should adhere to is as follows: |
| 367 |
|
| 368 |
\begin{itemize} |
| 369 |
\item The client sends text to process (may contain newlines) |
| 370 |
\item The client sends the string \texttt{EOT} followed by a newline |
| 371 |
\item The server responds with columned, TAB delimited output, one token per line, and an empty line between sentences. |
| 372 |
\item FoLiA input and output are also possible, using the \texttt{-x} and \texttt{-X} options without parameters. When \texttt{-X} is selected, TAB delimited output is suppressed. |
| 373 |
\item The last line of the server response consists of the string \texttt{READY}, so the client knows it received the full response. |
| 374 |
\end{itemize} |
| 375 |
|
| 376 |
Communicating with Frog on such a low-level may not be necessary, as there are |
| 377 |
already some libraries available to communicate with Frog for several |
| 378 |
programming languages: |
| 379 |
|
| 380 |
\begin{itemize} |
| 381 |
\item Python -- \textbf{pynlpl.clients.frogclient}\footnote{\url{https://github.com/proycon/pynlpl}, supports both Python 2 and Python 3} |
| 382 |
\item R -- \textbf{frogr}\footnote{\url{https://github.com/vanatteveldt/frogr/}} -- by Wouter van Atteveldt |
| 383 |
\item Go -- \textbf{grof}\footnote{\url{https://github.com/Machiel/gorf}} -- by Machiel Molenaar |
| 384 |
\end{itemize} |
| 385 |
|
| 386 |
The following example shows how to communicate with the Frog server from Python |
| 387 |
using the Frog client in PyNLPl, which can generally be installed with a simple |
| 388 |
\texttt{pip install pynlpl}, or is already available if you use our LaMachine distribution. |
| 389 |
|
| 390 |
\begin{verbatim} |
| 391 |
from pynlpl.clients.frogclient import FrogClient |
| 392 |
|
| 393 |
port = 12345 |
| 394 |
frogclient = FrogClient('localhost',port) |
| 395 |
|
| 396 |
for data in frogclient.process("Dit is de tekst om te verwerken.") |
| 397 |
word, lemma, morph, pos = data[:4] |
| 398 |
#TODO: Further processing per word |
| 399 |
\end{verbatim} |
| 400 |
|
| 401 |
Do note that Python users may prefer using the \texttt{python-frog} binding |
| 402 |
instead, which will be described in Section~\ref{pythonfrog}. This binds with Frog natively |
| 403 |
without using a client/server model and therefore has better performance. |
| 404 |
|
| 405 |
|
| 406 |
\section{Software usage} |
| 407 |
\label{sec-usage} |
| 408 |
|
| 409 |
|
| 410 |
\subsection{Character encoding} |
| 411 |
|
| 412 |
Frog assumes the input text to be plain text in the UTF-8 character |
| 413 |
encoding. However, Frog offers the option to specify another character encoding |
| 414 |
as input with the option {\t t -e}. This options is passed on to the {\it Ucto} Tokenizer. It has some limitations, (see \ref{tokenizer}) and will be ignored when the Tokenizer is disabled. The character encodings are derived from |
| 415 |
the ubiquitous unix tool {\it iconv } \footnote{In the current Frog version |
| 416 |
UTF-16 is not accepted as input in Frog.}. The output of Frog will always be in |
| 417 |
UTF-8 character encoding. Likewise, FoLiA XML defaults to UTF-8 as well. |
| 418 |
|
| 419 |
%@Ko: |
| 420 |
%cat bla |
| 421 |
%Supermarkt Albert Heijn is tegenwoordig tot 's avonds laat open. |
| 422 |
%En de rosé wijn met het zeeëgel logo is lekker. |
| 423 |
|
| 424 |
%iconv -f utf-8 -t utf-16 < bla >bla-utf16 |
| 425 |
% frog -t bla-utf16 -e utf-16 -o bla.out |
| 426 |
%geeft hele rare output in bla.out! |
| 427 |
|
| 428 |
\subsection{Tokenizer} |
| 429 |
\label{tokenizer} |
| 430 |
%@Maarten kun je de Ucto bibtex aanvullen? |
| 431 |
%proycon: done! |
| 432 |
|
| 433 |
Frog uses the tokenization software {\it Ucto} \cite{UCTO} for sentence |
| 434 |
boundary detection and to separate punctuation from words. In general, |
| 435 |
recognizing sentence boundaries and punctuation is a simple task but |
| 436 |
recognizing names and abbreviations is essential to perfom this task well. As |
| 437 |
shown in example \ref{ex-frog-out}, the tokenizer recognizes abbreviations such |
| 438 |
as {\tt z.g.} and {\tt `41} and considers them to be one token. Ucto uses |
| 439 |
manually constructed rules and lists of Dutch names and abbreviations. Detailed |
| 440 |
information on Ucto can be found on |
| 441 |
\url{https://languagemachines.github.io/ucto/}. |
| 442 |
|
| 443 |
The tokenizer module in Frog can be adjusted in several ways. If the input |
| 444 |
text is already split on sentence boundaries and has one sentence per line, the |
| 445 |
{\tt -n} option can be used to prevent Frog from changing the existing sentence |
| 446 |
boundaries. When sentence boundaries were already marked with a specific |
| 447 |
marker, one can specify this marker as {\tt --uttmarker "marker"}. The marker |
| 448 |
strings will be ignored and their positions will be taken as sentence |
| 449 |
boundaries. |
| 450 |
|
| 451 |
If the input text is already fully tokenized, the tokenization step in |
| 452 |
Frog can be skipped altogether using the skip parameter {\tt --skip=t}. |
| 453 |
\footnote{In fact the tokenizer still is used, but in \texttt{PassThru} mode. This allows for conversion to FoLiA XML and sentence detection.} |
| 454 |
% iris: @Ko: werkt de -n optie ook op folia input? |
| 455 |
% proycon: nee, dat is niet relevant, het concept van een 'input line' bestaat |
| 456 |
% niet in FoLiA, |
| 457 |
|
| 458 |
\subsection{Multi-word units} |
| 459 |
\label{sec-mwu} |
| 460 |
|
| 461 |
Frog recognizes certain special multi-word units (mwu) where a group of consecutive, related tokens is treated as one token. This behavior accommodates, and is in fact required for Frog's dependency parser as it is trained on a data set with such multi-word units. In the output the parts of the multi-word unit will be connected with an |
| 462 |
underscore. The PoS-tag, morphological analysis, named entity label and chunk |
| 463 |
label are concatenated in the same manner. |
| 464 |
|
| 465 |
This multi-word detection can be disabled using the option {\tt |
| 466 |
--skip=m}. When using this option, each element of the MWU is treated as |
| 467 |
separate token. We shown an example sentence in \ref{ex_mwu} that has two multi-word units: {\it Albert Heijn } and {\it's avonds}. \\ \newline |
| 468 |
|
| 469 |
\begin{tabular}{ll} |
| 470 |
\label{ex_mwu} |
| 471 |
\small |
| 472 |
S: &Supermarkt Albert Heijn is tegenwoordig tot 's avonds laat open.\\ |
| 473 |
&\\ |
| 474 |
1 & Supermarkt supermarkt [super][markt] N(soort,ev,basis,zijd,stan) 0.542056 O B-NP 3 su\\ |
| 475 |
2& Albert\_Heijn Albert\_Heijn [Albert]\_[Heijn] SPEC(deeleigen)\_SPEC(deeleigen) 1.000000 B-ORG\_I-ORG B-NP\_I-NP 1 app\\ |
| 476 |
3& is zijn [zijn] WW(pv,tgw,ev) 0.999150 O B-VP ROOT\\ |
| 477 |
4& tegenwoordig tegenwoordig [tegenwoordig] ADJ(vrij,basis,zonder) 0.994033 O B-ADVP 3 predc\\ |
| 478 |
5& tot tot [tot] VZ(init) 0.964286 O B-PP None\\ |
| 479 |
6& 's\_avonds 's\_avond ['s]\_[avond][s] LID(bep,gen,evmo)\_N(soort,ev,basis,gen) 0.962560 O\_O O\_B-ADVP 5 obj1\\ |
| 480 |
7& laat laat [laat] ADJ(vrij,basis,zonder) 1.000000 O B-VP 8 mod\\ |
| 481 |
8& open open [open] ADJ(vrij,basis,zonder) 0.983755 O B-ADJP 3 predc\\ |
| 482 |
9& . . [.] LET() 1.000000 O O 8 punct\\ |
| 483 |
\end{tabular} |
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
\subsection{Lemmatizer} |
| 488 |
|
| 489 |
The lemmatizer assigns the canonical form of a word to each word. For verbs |
| 490 |
the canonical form is the infinitive, and for nouns it is the singular form. |
| 491 |
The lemmatizer trained on the e-Lex lexicon \cite{e-lex}. It is dependent on |
| 492 |
the Part-of-Speech tagger as it uses both the word form and the assigned PoS tag to |
| 493 |
disambiguate between different candidate lemmas. For example the word {\it |
| 494 |
zakken} used as a noun has the lemma {\it zak} while the verb has lemma {\it |
| 495 |
zakken}. Section \ref{sec-bg-lem} presents further details on the lemmatizer. |
| 496 |
|
| 497 |
|
| 498 |
\subsection{Morphological Analyzer} |
| 499 |
|
| 500 |
The morphological Analyzer (MBMA) cuts each word into its morphemes and shows the spelling changes that took place to create the word form. The fourth column in example \ref{ex-frog-out} shows the morphemes of the example sentence. MBMA tries to decompose every token into morphemes, except for punctuation marks and names. Note that MBMA sometimes makes mistakes with unknown words such as abbreviations that are not included in the MBMA lexicon. The abbreviation {\tt z.g.} in the example is wrongly analyzed as consisting of two parts. |
| 501 |
%iris: dit zou dus een verbeterpunt in MBMA kunnen zijn. |
| 502 |
%ko: die fout maakt frog niet meer. (zie ook het aangehaalde voorbeedl 4.1 waar het WEL goed is) |
| 503 |
As shown in the earlier XML example \ref{ex-xml-tok} the past particle {\it |
| 504 |
aangesneden} is split into {\it[aan][ge][snijd][en]} where the morpheme {\it |
| 505 |
[snijd]} is the root form of {\it sned}. More information about the MBMA |
| 506 |
architecture can be found in \ref{sec-bg-morf}. |
| 507 |
|
| 508 |
|
| 509 |
\subsection{Part-of-Speech Tagger} |
| 510 |
|
| 511 |
The Part-of-Speech tagger uses the tag set of \emph{Corpus Gesproken Nederlands |
| 512 |
(CNG)} \cite{vanEynde2004}. It has 12 main PoS tags (shown in table~\ref{tab-pos-tags}) |
| 513 |
and detailed features for type, gender, number, case, position, degree, and tense. |
| 514 |
|
| 515 |
We show an example of the PoS tagger output in table~\ref{tab-pos-conf}. The tagger |
| 516 |
also expresses how certain it was about its tag label in a confidence score |
| 517 |
between 0 (not sure) and 1 (absolutely sure). In the example the PoS tagger is |
| 518 |
very sure about the first four tokens but not about the label {\tt |
| 519 |
N(soort,ev,basis,zijd,stan)} for the token {\it Psychologie} as it only has a |
| 520 |
confidence score of 0.67. {\it Psychologie} is an ambiguous token and can also |
| 521 |
be used as a name (tag SPEC). |
| 522 |
%In the training set the token {\it Psychologie} occurs 23 times, 19 times as a |
| 523 |
%name (label SPEC) and 4 times as noun (N). |
| 524 |
|
| 525 |
%iris: willen we alle tags in detail beschrijven hier? |
| 526 |
%The token 'Ik' is a pronoun (VNW), of the type nomimal(nom) personal(pers) first person(1) singular(ev) (pers,pron,nomin,vol,1,ev). The verb 'ben' |
| 527 |
|
| 528 |
\begin{table}[h] |
| 529 |
\begin{tabular}{ll} |
| 530 |
ADJ & Adjective\\ |
| 531 |
BW & Adverb\\ |
| 532 |
LET & Punctuation\\ |
| 533 |
LID & Determiner\\ |
| 534 |
N & Noun\\ |
| 535 |
SPEC & Names and unknown\\ |
| 536 |
TSW & Interjection\\ |
| 537 |
TW & Numerator\\ |
| 538 |
VG & Conjunction\\ |
| 539 |
VNW & Pronoun\\ |
| 540 |
VZ & Preposition\\ |
| 541 |
WW & Verb\\ |
| 542 |
% 654059 & ADJ & Adjective\\ |
| 543 |
% 1107840 & BW & Adverb\\ |
| 544 |
% 1008522 & LET & Punctuation\\ |
| 545 |
% 656629 & LID & Determiner\\ |
| 546 |
% 1188816 & N & Noun\\ |
| 547 |
% 334607 & SPEC & Names and unknown\\ |
| 548 |
% 872 & TSW & Interjection\\ |
| 549 |
% 141294 & TW & Numerator\\ |
| 550 |
% 635755 & VG & conjunction\\ |
| 551 |
% 1670448 & VNW & Pronoun\\ |
| 552 |
% 946779 & VZ & Preposition\\ |
| 553 |
% 1695812 & WW & Verb\\ |
| 554 |
\end{tabular} |
| 555 |
\caption{\label{tab-pos-tags} The main tags in the CGN PoS-tag set.} |
| 556 |
\end{table} |
| 557 |
|
| 558 |
|
| 559 |
\begin{table}[h] |
| 560 |
\begin{tabular}{llll} |
| 561 |
34 & Ik & VNW(pers,pron,nomin,vol,1,ev) & 0.999791\\ |
| 562 |
35 & ben & WW(pv,tgw,ev) & 0.999589\\ |
| 563 |
36 & ook & BW()& 0.999979\\ |
| 564 |
37 & professor & N(soort,ev,basis,zijd,stan) & 0.997691 \\ |
| 565 |
38 & Psychologie & N(soort,ev,basis,zijd,stan) & {\bf 0.666667}\\ |
| 566 |
\end{tabular} |
| 567 |
\caption{\label{tab-pos-conf} The PoS tagger assigns a confidence score to each tag.} |
| 568 |
\end{table} |
| 569 |
|
| 570 |
\subsection{Named Entity Recognition} |
| 571 |
\label{sec-ner} |
| 572 |
|
| 573 |
The Named Entity Recognizer (NER) detects names in the text and labels them as |
| 574 |
location (\textsc{LOC}), person (\textsc{PER}), organization (\textsc{ORG}), product (\textsc{PRO}), event (\textsc{EVE}) or |
| 575 |
miscellaneous (\textsc{MISC}). |
| 576 |
|
| 577 |
%Events: Grammy awards, Second World War Product (Bible,New York Times) |
| 578 |
Internally and in Frog's columned output, the tags use a so-called BIO paradigm where B stands for the beginning of the name, I signifies Inside the name, and O outside the name. |
| 579 |
|
| 580 |
More detailed information about the NER module can be found in \ref{sec-bg-ner}. |
| 581 |
|
| 582 |
|
| 583 |
\subsection{Phrase Chunker} |
| 584 |
\label{sec-chunker} |
| 585 |
|
| 586 |
The phrase chunker represents an intermediate step between part-of-speech tagging and full parsing as it produces a non-recursive, non-overlapping flat structure of recognized phrases in the text and classifies them with their grammatical function such as adverbial phrase (ADVP), verb phrase (VP) or noun phrase (NP). The tag labels produced by the chunker use the same type of BIO-tags (Beginning-Inside-Outside) as the named entity recognizer. |
| 587 |
We show an example sentence in \ref{ex-chunk} where the four-word noun phrase {\it het cold case team} is recognized as one phrase. The prepositional phrases (PP) consist only of the preposition themselves due to the flat structure in which the relation between prepositions and noun phrases is not expressed (note that the dependency parse labels, section \ref{sec-dep} do express these relations). Here {\it Midden-Nederland} is recognized by the PoS tagger as name and therefor marked as a separate noun phrase that follows the noun phrase {\it de politie}. |
| 588 |
|
| 589 |
\begin{example} |
| 590 |
$[$Dat$]_{NP} [$bevestigt$]_{VP} [$het cold case team$]_{NP} [$van$]_{PP}] [$de politie$]_{NP} [$Midden-Nederland$]_{NP} [$ aan $]_{PP} [$de Telegraaf$]_{NP} [$ . |
| 591 |
\end{example} |
| 592 |
|
| 593 |
\begin{table}[h] |
| 594 |
\begin{tabular}{lll} |
| 595 |
1&Dat&B-NP\\ |
| 596 |
2&bevestigt&B-VP\\ |
| 597 |
3&het&B-NP\\ |
| 598 |
4&cold&I-NP\\ |
| 599 |
5&case&I-NP\\ |
| 600 |
6&team&I-NP\\ |
| 601 |
7&van&B-PP\\ |
| 602 |
8&de&B-NP\\ |
| 603 |
9&politie&I-NP\\ |
| 604 |
10&Midden-Nederland&B-NP\\ |
| 605 |
11&aan&B-PP\\ |
| 606 |
12&de&B-NP\\ |
| 607 |
13&Telegraaf&I-NP\\ |
| 608 |
14&.&O\\ |
| 609 |
\end{tabular} |
| 610 |
\caption{\label{ex-chunk} The phrase chunker detects phrase boundaries and labels the phrases with their grammatical information.} |
| 611 |
\end{table} |
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
\subsection{Dependency Parser} |
| 616 |
\label{sec-dep} |
| 617 |
|
| 618 |
The Constraint-satisfaction inference-based dependency parser (CSI-DP) \cite{Canisius+2006} predicts grammatical relations between pairs of tokens. In each token pair relation, one token is the head and the other is the dependent. Together these relations represent the syntactic tree of the sentence. One token, usually the main verb in he sentence, forms the root of the tree and the other tokens depend on the root in a direct or indirect relation. CSI-DP is trained on the Alpino treebank \cite{Bouma+01} for Dutch and uses the Alpino syntactic labels listed in appendix \ref{app-dep}. |
| 619 |
In the plain text output of Frog ( example \ref{ex-frog-out}) the dependency information is presented in the last two columns. The one-but-last column shows number of the token number of the head word of the dependency relation and the last column shows the grammatical relation type. |
| 620 |
We show the last two columns of the CSI-DP output in table~\ref{ex-dep}. |
| 621 |
The main verb {\it bevestigt} is root element of the sentence, the head of the |
| 622 |
subject relation ({\tt su}) with the pronoun {\it Dat} and head in the object |
| 623 |
relation ({\tt obj1}) with {\it team}. The noun {\it team} is the head in three |
| 624 |
relations: the determiner({\tt det}) {\it het} and the two modifiers({\tt mod}) |
| 625 |
{\it cold case}. The name {\it Midden-Nederland} is linked as an apposition to |
| 626 |
the noun {\it politie}. The prepositional phrase {\it van} is correctly |
| 627 |
assigned to the head noun {\it team} but the phrase {\it aan} is mistakenly |
| 628 |
linked to {\it politie} instead of the root verb {\it bevestigt}. Linking |
| 629 |
prepositional phrases is a hard task for parsers \cite{atterer2007}. More |
| 630 |
details on the architecture of the CSI-DP can be found in section~\ref{sec-bg-dep} |
| 631 |
%M. Atterer and H. Sch¨utze. Prepositional phrase attachment |
| 632 |
%without oracles. Computational Linguistics, 33(4):469–476,2007. |
| 633 |
%M. Volk. How bad is the problem of PP-attachment? A comparison |
| 634 |
%of English, German and Swedish. In Proceedings of the |
| 635 |
%Third ACL-SIGSEM Workshop on Prepositions, pages 81–88,2006. |
| 636 |
%J. Zavrel, W. Daelemans, and J. Veenstra. Resolving PP attachment |
| 637 |
%ambiguities with memory-based learning. In Proceedings |
| 638 |
%CoNLL 1997, pages 136–144, 1997. |
| 639 |
|
| 640 |
\begin{table}[h] |
| 641 |
\begin{tabular}{llll} |
| 642 |
1&Dat&2&su\\ |
| 643 |
2&bevestigt&0&ROOT\\ |
| 644 |
3&het&6&det\\ |
| 645 |
4&cold&5&mod\\ |
| 646 |
5&case&6&mod\\ |
| 647 |
6&team&2&obj1\\ |
| 648 |
7&van&6&mod\\ |
| 649 |
8&de&9&det\\ |
| 650 |
9&politie&7&obj1\\ |
| 651 |
10&Midden-Nederland&9&app\\ |
| 652 |
11&aan&9&mod\\ |
| 653 |
12&de&13&det\\ |
| 654 |
13&Telegraaf&11&obj1\\ |
| 655 |
14&.&13&punct\\ |
| 656 |
\end{tabular} |
| 657 |
\caption{\label{ex-dep} The dependency parser labels each token with a dependency relation to its head token and assigns the grammatical relation.} |
| 658 |
\end{table} |
| 659 |
|
| 660 |
\section{Using Frog from Python} |
| 661 |
\label{pythonfrog} |
| 662 |
|
| 663 |
It is possible to call Frog directly from Python using the \texttt{python-frog} |
| 664 |
software library. Contrary to the Frog client for Python discussed in |
| 665 |
Section~\ref{servermode}, this library is a direct binding with code from |
| 666 |
Frog and does not use a client/server model. It therefore offers the tightest |
| 667 |
form of integration, and highest performance, possible. |
| 668 |
|
| 669 |
\subsection{Installation} |
| 670 |
|
| 671 |
The Python-Frog library is not included with Frog itself, but is shipped |
| 672 |
separately from \url{https://github.com/proycon/python-frog}. |
| 673 |
|
| 674 |
Users who installed Frog using LaMachine, however, will already find that this software |
| 675 |
has been installed. |
| 676 |
|
| 677 |
Other users will need to compile and install it from |
| 678 |
source. First ensure Frog itself is installed, then install the dependency |
| 679 |
\texttt{cython}\footnote{Versions for Python 3 may be called \texttt{cython3} |
| 680 |
on distributions such as Debian or Ubuntu}. Installation of Python-Frog is then |
| 681 |
done by running: \texttt{\$ python setup.py install} from its directory. |
| 682 |
|
| 683 |
\subsection{Usage} |
| 684 |
|
| 685 |
The Python 3 example below illustrates how to parse text with Frog: |
| 686 |
|
| 687 |
\begin{verbatim} |
| 688 |
from frog import Frog, FrogOptions |
| 689 |
|
| 690 |
frog = Frog(FrogOptions(parser=False)) |
| 691 |
|
| 692 |
output = frog.process_raw("Dit is een test") |
| 693 |
print("RAW OUTPUT=",output) |
| 694 |
output = frog.process("Dit is nog een test.") |
| 695 |
print("PARSED OUTPUT=",output) |
| 696 |
\end{verbatim} |
| 697 |
|
| 698 |
To instantiate the \texttt{Frog} class, two arguments are needed. The first is a |
| 699 |
\texttt{FrogOptions} instance that specifies the configuration options you want to |
| 700 |
pass to Frog. |
| 701 |
|
| 702 |
The \texttt{Frog} instance offers two methods: \texttt{process\_raw(text)} and |
| 703 |
\texttt{process(text)}. The former just returns a string containing the usual |
| 704 |
multiline, columned, and TAB delimiter output. The latter parses this string |
| 705 |
into a dictionary. The example output of this from the script above is shown |
| 706 |
below: |
| 707 |
|
| 708 |
\begin{verbatim} |
| 709 |
PARSED OUTPUT = [ |
| 710 |
{'chunker': 'B-NP', 'index': '1', 'lemma': 'dit', 'ner': 'O', |
| 711 |
'pos': 'VNW(aanw,pron,stan,vol,3o,ev)', 'posprob': 0.777085, 'text': 'Dit', 'morph': '[dit]'}, |
| 712 |
{'chunker': 'B-VP', 'index': '2', 'lemma': 'zijn', 'ner': 'O', |
| 713 |
'pos': 'WW(pv,tgw,ev)', 'posprob': 0.999966, 'text': 'is', 'morph': '[zijn]'}, |
| 714 |
{'chunker': 'B-NP', 'index': '3', 'lemma': 'nog', 'ner': 'O', |
| 715 |
'pos': 'BW()', 'posprob': 0.99982, 'text': 'nog', 'morph': '[nog]'}, |
| 716 |
{'chunker': 'I-NP', 'index': '4', 'lemma': 'een', 'ner': 'O', |
| 717 |
'pos': 'LID(onbep,stan,agr)', 'posprob': 0.995781, 'text': 'een', 'morph': '[een]'}, |
| 718 |
{'chunker': 'I-NP', 'index': '5', 'lemma': 'test', 'ner': 'O', |
| 719 |
'pos': 'N(soort,ev,basis,zijd,stan)', 'posprob': 0.903055, 'text': 'test', 'morph': '[test]'}, |
| 720 |
{'chunker': 'O', 'index': '6', 'eos': True, 'lemma': '.', 'ner': 'O', |
| 721 |
'pos': 'LET()', 'posprob': 1.0, 'text': '.', 'morph': '[.]'} |
| 722 |
] |
| 723 |
\end{verbatim} |
| 724 |
|
| 725 |
There are various options you can set when creating an instance of \texttt{FrogOptions}, they are set as keyword arguments: |
| 726 |
|
| 727 |
\begin{itemize} |
| 728 |
\item \texttt{tok} -- \emph{bool} -- Do tokenisation? (default: True) |
| 729 |
\item \texttt{lemma} -- \emph{bool} -- Do lemmatisation? (default: True) |
| 730 |
\item \texttt{morph} -- \emph{bool} -- Do morphological analysis? (default: True) |
| 731 |
\item \texttt{daringmorph} -- \emph{bool} -- Do morphological analysis in new experimental style? (default: False) |
| 732 |
\item \texttt{mwu} -- \emph{bool} -- Do Multi Word Unit detection? (default: True) |
| 733 |
\item \texttt{chunking} -- \emph{bool} -- Do Chunking/Shallow parsing? (default: True) |
| 734 |
\item \texttt{ner} -- \emph{bool} -- Do Named Entity Recognition? (default: True) |
| 735 |
\item \texttt{parser} -- \emph{bool} -- Do Dependency Parsing? (default: False). |
| 736 |
\item \texttt{xmlin} -- \emph{bool} -- Input is FoLiA XML (default: False) |
| 737 |
\item \texttt{xmlout} -- \emph{bool} -- Output is FoLiA XML (default: False) |
| 738 |
\item \texttt{docid} -- \emph{str} -- Document ID (for FoLiA) |
| 739 |
\item \texttt{numThreads} -- \emph{int} -- Number of threads to use (default: unset, unlimited) |
| 740 |
\end{itemize} |
| 741 |
|
| 742 |
|
| 743 |
\section{Frog generator} |
| 744 |
|
| 745 |
Frog is developed for Dutch and intended as a ready tool to feed your text and to get detailed linguistic information as output. |
| 746 |
However, it is possible to create a Frog lemmatizer and PoS-tagger for your own |
| 747 |
data set, either for a specific Dutch corpus or for a corpus in a different language. {\tt Froggen} is a Frog-generator that expects as input a training corpus in a TAB separated column format of words, lemmas and PoS-tags. |
| 748 |
%'Yo mam! Heb je de spekkoek al klaar? Coolio mam, echt vet lekker' Eh...watte? #kleinemannetjeswordengroot |
| 749 |
|
| 750 |
This Dutch tweet annotated with lemma and PoS-tag information is an example of input required for {\tt froggen}: |
| 751 |
|
| 752 |
\begin{verbatim} |
| 753 |
Coolio coolio TSW |
| 754 |
mam mam N |
| 755 |
, , LET |
| 756 |
echt echt ADJ |
| 757 |
vet vet ADJ |
| 758 |
lekker lekker ADJ |
| 759 |
' ' LET |
| 760 |
<utt> |
| 761 |
Eh eh TSW |
| 762 |
... ... LET |
| 763 |
watte wat VNW |
| 764 |
<utt> |
| 765 |
? ? LET |
| 766 |
#kleinemannetjeswordengroot #kleinemannetjeswordengroot HTAG |
| 767 |
\end{verbatim} |
| 768 |
|
| 769 |
Running {\tt froggen -T taggedcorpus -c my\_frog.cfg } will create a set of |
| 770 |
Frog files, including the specified configuration file, that can be used to run |
| 771 |
your own Frog. Your own instance of Frog should then be invoked using {\tt frog -c my\_frog.cfg}. |
| 772 |
|
| 773 |
Besides the option to specify the Frog configuration file name to save the settings, one can also name the output directory where the frog files will be saved with {\tt [-O outputdir]}. |
| 774 |
Froggen also allows an additional dictionary list of words, lemmas and PoS-tags |
| 775 |
to improve the lemmatizer module with the option {\tt [-l lemmalist]}. |
| 776 |
%(proycon): dat klinkt een beetje vaag, in welk formaat? is dat elders beschreven? |
| 777 |
|
| 778 |
|
| 779 |
\chapter{Background}\label{ch-bg} |
| 780 |
%for each module |
| 781 |
% module architecture classifier/rules, types of features |
| 782 |
% training material |
| 783 |
% evaluation results of module on benchmark data |
| 784 |
% options to tune, retrain or replace module ? |
| 785 |
|
| 786 |
%todo: geschiedenis vanaf mbsp en tadpole mbtalpa |
| 787 |
\section{Once upon a time } |
| 788 |
%iris: ik stem alvast voor de volgende naam voor de finale versie: Tadpole ->Frog -> Prince |
| 789 |
|
| 790 |
The development of Frog's modules started in the nineties at the ILK Research Group |
| 791 |
(Tilburg University, the Netherlands) and the CLiPS Research Centre (University |
| 792 |
of Antwerp, Belgium). Most modules rely on Timbl, the Tilburg memory-based learning software |
| 793 |
package \cite{timbl} or MBT the memory-based tagger-generator \cite{mbt}. |
| 794 |
These modules were integrated into an NLP pipeline that was first named MB-TALPA and later Tadpole \cite{Tadpole}. Over the years, the modules were refined and retrained on larger data sets and the latest versions of each module are discussed in this chapter. We thank all programmers who worked on Frog and its predecessors in chapter \ref{ch-credit}. |
| 795 |
|
| 796 |
The CliPS Research Centre also developed an English counterpart of Frog, a python module called MBSP (MBSP website: \url{http://www.clips.ua.ac.be/pages/MBSP}). |
| 797 |
%Walter This is not actively supported anymore. |
| 798 |
|
| 799 |
\section{Module overview} |
| 800 |
|
| 801 |
Frog was developed as a modular system that allows for flexibility in usage. |
| 802 |
In the current version of Frog, modules have a minimum of dependencies between each other so that the different modules can actually run in parallel processes, speeding up the performance time of Frog. The NER module, lemmatizer, phrase chunker and dependency parser are all independent from each other. All modules expect tokenized text as input. The lemmatizer, morphological analyzer and parser do depend on the PoS-tagger output. |
| 803 |
These dependencies are depicted in figure \ref{fig-arch}. The tokenizer and multi-word chunker are rule-based modules while all other modules are based on trained memory-based classifiers. |
| 804 |
|
| 805 |
|
| 806 |
\begin{figure*}[ht] |
| 807 |
\centering |
| 808 |
\includegraphics[scale=0.3]{frogarchitecture} |
| 809 |
\caption{Overview of the Frog architecture and the dependencies between the modules. All blue modules are based on memory-based learning while the yellow modules are rule-based.} |
| 810 |
\label{fig-arch} |
| 811 |
\end{figure*} |
| 812 |
%iris: picture taken from CLIN presentation. |
| 813 |
|
| 814 |
\subsection{Configuration file} |
| 815 |
|
| 816 |
For advanced usage of Frog, we can define the individual settings of each |
| 817 |
module in the Frog configuration file ({\tt frog.cfg} in the frog source directory) or adapt some of the standard options. Editing this file requires detailed knowledge about the modules and relevant options will be discussed in the next sections. You can create your own frog configuration file and run frog with {\tt frog -c myconfigfile.cfg }. |
| 818 |
%The configuration file also contains links to the Folia XML set definitions for the used XML tag sets. |
| 819 |
The configuation file follows the INI file format\footnote{More about the INI file format:\url{https://en.wikipedia.org/wiki/INI_file)}} and is divided in individual sections for each of the modules. Some parts of the config file are obligatory and we show the |
| 820 |
%De verschillende taggers staan in de configfile onder de kopjes: |
| 821 |
%{\tt [[tagger]] }voor Nederlands de CGN tagger. (deze is min of meer verplicht) |
| 822 |
%{\tt [[IOB]] } optioneel |
| 823 |
%{\tt [[NER]] } optioneel |
| 824 |
|
| 825 |
\begin{verbatim} |
| 826 |
------------------------------------ |
| 827 |
[[tagger]] |
| 828 |
set=http://ilk.uvt.nl/folia/sets/frog-mbpos-cgn |
| 829 |
settings=morgen.settings |
| 830 |
|
| 831 |
[[mblem]] |
| 832 |
timblOpts=-a1 -w2 +vS |
| 833 |
treeFile=morgen.tree |
| 834 |
|
| 835 |
------------------------------------- |
| 836 |
\end{verbatim} |
| 837 |
|
| 838 |
There are some settings that each of the modules uses: |
| 839 |
|
| 840 |
%1) settings=''' Wat verwijst naar een MBT settingsfile waarin de |
| 841 |
%parameters staan waarmee de tagger getraind is. |
| 842 |
%2) standaard opties: |
| 843 |
\begin{itemize} |
| 844 |
\item {\tt debug} Alternative to using {\tt --debug} on the command line. Debug values ranges from 1 (not very verbose) to 10??? (very verbose). Default setting is{\tt debug=0}. %@Ko levels? |
| 845 |
|
| 846 |
\item {\tt version} module version that will be mentioned in FoLia XML output file. |
| 847 |
%KO:in principe moet met elkeaanpassing in de MBMA trainingsdata dit aangepast,maar tot nu toe is dat nooit gedaan. Misschien aan beginnen als de MBMAdata stabiel genoeg is. |
| 848 |
|
| 849 |
\item {\tt char\_filter\_file} file name of file where you can specify whether certain characters need to be replaced or ignored. For example, by default we translate all forms of exotic single quotes to the standard quote character. |
| 850 |
%iris @KO har\_filter\_file="filename" en hoe moet dat file er dan uit zien, en kan ik dit idd aanpassen? bijv alles lower case maken? of alle nummers weggooien? |
| 851 |
|
| 852 |
\item {\tt set} reference to the appropriate Folia XML set definition that is used in the module. |
| 853 |
\end{itemize} |
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
|
| 858 |
|
| 859 |
|
| 860 |
|
| 861 |
|
| 862 |
|
| 863 |
|
| 864 |
%@Maarten: deze file staat vol met verwijzingen naar niet-bestaande folia sets! |
| 865 |
%http://ilk.uvt.nl/folia/sets/frog-depparse-nl |
| 866 |
%en ook nog naar de oude ilk pagina. |
| 867 |
%proycon: yep, klopt... Vrijwel alle sets bestaan nog niet, dat is op zich geen |
| 868 |
%ramp, het fungeert vooral als een unieke ID, daarom kunnen we het eigenlijk |
| 869 |
%ook niet zomaar wijzigen. Het was de bedoeling dat de oude ILK-pagina |
| 870 |
%doorlinkt naar waar de sets wel staan als ze überhaupt bestaan. Maar dat is |
| 871 |
%sindskort kapot zie ik, ik vraag het lars (systeembeheerder UvT) om te fixen. |
| 872 |
%iris:oke Lars heeft het gefixed. |
| 873 |
|
| 874 |
%proycon: hoort de configuration bij quick start? Ik zou het naar later verplaatsen |
| 875 |
%iris: done. |
| 876 |
|
| 877 |
\subsection{Tokenizer} |
| 878 |
\label{sec-bg-tok} |
| 879 |
|
| 880 |
The tokenizer Ucto has its own reference guide \cite{UCTO} and more detailed information can also be found on \url{https://languagemachines.github.io/ucto/}. |
| 881 |
|
| 882 |
|
| 883 |
\subsection{Multi-word Units} |
| 884 |
|
| 885 |
Extraction of multi-word units is a necessary pre-processing step for the Frog parser. |
| 886 |
The mwu module is a simple script that takes as input the tokenized and PoS-tagged text and concatenates certain tokens like fixed expressions and names. Common mwu such as `ad hoc' are found with a dictionary lookup, and consecutive tokens that are labeled as `SPEC(deeleigen)' by the PoS-tagger are concatenated ({\tt gluetag} in the Frog config file). |
| 887 |
The dictionary list of common mwu contains 1325 items and is distributed with the Frog source code and can be found under {\tt /etc/frog/Frog.mwu.1.0 }. These settings can be modified in the Frog config file. |
| 888 |
|
| 889 |
%/vol/customopt/lamachine/etc/frog/Frog.mwu.1.0 |
| 890 |
%zo_optimaal_mogelijk BW_ADJ_ADJ |
| 891 |
%verticale_diensten ADJ_N |
| 892 |
%zommer_zonnewende |
| 893 |
% iris: er is in Stevin ook een MWU lijst gemaakt. die is niet geheel bruikbaar want bevat ook vervoegde vormen 'geen hand voor ogen kunnen zien' |
| 894 |
% maar goed, deze lijst is ook nogal arbitrair. |
| 895 |
|
| 896 |
\subsection{Lemmatizer} |
| 897 |
\label{sec-bg-lem} |
| 898 |
%@kobus heeft jouw mblem.lex zelfde aantal items? 595,664? want dit geval komt nog van oude file. |
| 899 |
% en hoeveel heeft mbma.lex? |
| 900 |
The lemmatizer is trained on the e-Lex lexicon \cite{e-lex} with 595,664 unique word form - PoS-tag - lemma combinations. The e-Lex lexicon has been manually cleaned to correct several errors. |
| 901 |
A timbl classifier is trained to learn the conversion of word forms to their lemmas. Each word form in the lexicon is represented as training instance consisting of the last 20 characters of the word form. Note that this abbreviates long words such as {\it consumptiemaatschappijen} to {\tt u m p t i e m a a t s c h a p p i j e n}.%{\it faculteitsvergaderingen} to {\tt u l t e i t s v e r g a d e r i n g e n} |
| 902 |
In total, the training instance base has 402,734 unique word forms. |
| 903 |
As in the Dutch language morphological changes occur in the word suffix, leaving out the word beginning will not hinder the lemma assignment. |
| 904 |
The class label of each instance is the PoStag and a rewrite rule to transform the word form to the lemma form. The rewrite rules are applied to the word form endings and delete or insert one or multiple characters. For example to get the lemma {\it bij} for the noun {\it bijen} we need to delete the ending {\it en} to derive the lemma. |
| 905 |
We show some examples of instances in \ref{ex-lem} where the rewrite rules should be read as follows. For the example the word form {\it haarspleten} with label {\tt N(soort,mv,basis)+Dten+Iet} is a plural noun with lemma {\it haarspleet} that is derived by deleting(+D) the ending {\it ten} and inserting (+I) the new ending {\it et}. |
| 906 |
For ambiguous word forms, the class label consists of multiple rewrite rules. The first rewrite rule with the same PoS tag is selected in such case. |
| 907 |
Let's take as example the word {\it staken} that can be the plural noun form of {\it staak}, the present tense of the verb {\it staken} or the past tense of the verb {\it steken}. Here the PoS determines which rewrite rule is applied. |
| 908 |
The lemmatizer does not take into account the sentence context of the words and in those rare cases where a word form has different lemmas associated with the same PoS-tags, a random choice is made. |
| 909 |
%@antal: is de volgorde van de rewrite rules op e-lex frequenties gebaseerd of random? |
| 910 |
%Kobus, Maarten iemand zin om eens te kijken hoe vaak je onoplosbare gevallen hebt in het Nederlands? Daar ben ik echt best wel benieuwd naar! |
| 911 |
%dus dezelfde POStag maar een andere rewrite rule. |
| 912 |
%steengroeven ->N(groeve)+Dn|N(groef)+Dven+If |
| 913 |
%als ze heeeel zeldzaam zijn, dan hoeven we ze niet te noemen ? |
| 914 |
|
| 915 |
\begin{example} |
| 916 |
\label{ex-lem} |
| 917 |
|
| 918 |
\scalebox{0.8}{ |
| 919 |
\begin{tabular}{ccccccccccccccl} |
| 920 |
=&=&=&=&=&=&=&=&=&b&i&j&e&n&N(soort,mv,basis)+Den\\ |
| 921 |
=&=&=&h&a&a&r&s&p&l&e&t&e&n&N(soort,mv,basis)+Dten+Iet\\ |
| 922 |
=&=&=&=&h&a&a&r&s&t&u&k&j&e&N(soort,ev,dim,onz,stan)\\ |
| 923 |
=&=&=&=&=&=&=&=&s&t&a&k&e&n&N(soort,mv,basis)+Dken+Iak$|$WW(inf,nom,zonder,zonder-n)$|$WW(inf,prenom,zonder)$|$\\ |
| 924 |
& && & & && & & & & & & &WW(inf,vrij,zonder)$|$WW(pv,tgw,mv)$|$WW(pv,verl,mv)+Daken+Ieken\\ |
| 925 |
=&=&=&=&=&=&=&s&p&l&e&t&e&n&N(soort,mv,basis)+Dten+Iet$|$WW(pv,verl,mv)+Deten+Iijten\\ |
| 926 |
|
| 927 |
\end{tabular} |
| 928 |
} |
| 929 |
\end{example} |
| 930 |
|
| 931 |
%/vol/tensusers/ihendrickx/Data/frogdata/mblem.data:= = = = = = = = z w a l u w s t a a r t N(soort,ev,basis,zijd,stan)|WW(pv,tgw,ev)+Ien |
| 932 |
%/vol/tensusers/ihendrickx/Data/frogdata/mblem.data:= = = = = = = v r i j d a g s t a a r t N(soort,ev,basis,zijd,stan) |
| 933 |
% /vol/tensusers/ihendrickx/Data/frogdata/mblem.data:= = = = = = = = = = = = = = v u i l s t ADJ(nom,sup,zonder,zonder-n)+Dst|ADJ(prenom,sup,zonder)+Dst|ADJ(vrij,sup,zonder)+Dst |
| 934 |
% = = = = = = = = s t e e n g r o e v e n N(16)+Dn|N(16)+Dven+If |
| 935 |
%= = = = = = = = = = = = = = s t a a r t N(soort,ev,basis,zijd,stan)|WW(pv,tgw,ev)+Ien|WW(pv,tgw,met-t)+Dart+Iren |
| 936 |
|
| 937 |
%wc /vol/bigdata/corpora/FrogData/mblem.data |
| 938 |
%iris: zucht die datafile is helemaal verouderd en komt niet overeen met de werkelijkheid in Frog! |
| 939 |
% dus Frog gebruikt niet langer mblem.translable (obsolete!) en de e-lex codes maar meteen gewoon de CGN tags. |
| 940 |
%ko heeft me nu de nieuwe files gegeven zodat ik opniew kan tellen, en een paar voorbeeldjes eruit kan halen. |
| 941 |
%done. |
| 942 |
% /vol/tensusers/ihendrickx/Data/frogdata/ |
| 943 |
|
| 944 |
|
| 945 |
\subsection{Morphological Analyzer} |
| 946 |
\label{sec-bg-morf} |
| 947 |
|
| 948 |
The Morphological analyser MBMA \cite{MBMA} aims to decompose tokens into their morphemes reflecting possible spelling changes. Here we show two example words: |
| 949 |
\begin{example} |
| 950 |
\label{ex-longword}\begin{verbatim} |
| 951 |
[leven][s][ver][zeker][ing][s][maatschappij][en] |
| 952 |
[aan][deel][houd][er][s][vergader][ing][en] |
| 953 |
\end{verbatim} |
| 954 |
\end{example} |
| 955 |
Internally, MBMA not only tries to split tokens into morphemes but also aims to classify each splitting point and its relation to the adjacent morpheme. MBMA is trained on the CELEX database \cite{Baayen+93}. Each word is represented by a set of instances that each represent one character of the word in context of 6 characters to the left and right. As example we show the 10 instances that were created for the word form {\it gesneden} in \ref{ex-mbma}. The general rule in Dutch to create a part particle of a verb is to add {\it ge-} at the beginning and add {\it -en} at the end. The first character 'g' is labeled with {\tt pv+Ige} indicating the start of an past particle (pv) where a prefix {\it ge} was inserted ({\tt +Ige)}. Instance 3 represents the actual start of the verb (V) and instance 5 reflects the spelling change that transforms the root form {\it snijd} to the actual used form {\it sned} ({\tt 0+Rij$>$e}: replace current character 'ij' with 'e' ). Instance 7 also has label 'pv' and denotes the end boundary of the root morpheme. |
| 956 |
|
| 957 |
Timbl IGtree \cite{timbl} trained on 3179,331 instances extracted from that were based on the CELEX lexicon of 293,570 word forms. %wc laatste versie: /vol/tensusers/ihendrickx/Data/frogdata/mbma.data |
| 958 |
%oude versie /vol/bigdata/corpora/FrogData/mbma-merged.lex.back.151101 ?? |
| 959 |
|
| 960 |
The morphological character type classes result in a total 2708 class labels where the most frequent class '0' occurs in 69\% of the cases as most characters are inside an morpheme and to do not signify any morpheme border or spelling change. %(2183976/3179357 = .686) |
| 961 |
7\% of the instance represent a noun (N) starting point and 4\% a verb (V) starting point. The most frequent spelling changes are the insertion of an 'e' after the morpheme ({\tt 0/e}) (klopt dit?) or a plural inflection (denoted as 'm'). |
| 962 |
|
| 963 |
The MBMA module of Frog does not analyze every token in the text, it uses the PoS tags assigned by the PoS module to filter out punctuation and names (PoS 'SPEC') and words that we labeled as ABBREVIATION by the Tokeniser. For these cases, Frog keeps the token as it is without further analysis. |
| 964 |
|
| 965 |
{\it Running frog with the parameter {\tt --deep-morph} results in a much richer morphological analysis including grammatical classes and spelling changes}. |
| 966 |
%[[aan]preposition[ge]/participle/past-tense[snijd]verb[en]/participle/past-tense]verb |
| 967 |
|
| 968 |
% 52459 m |
| 969 |
% 85905 0/e |
| 970 |
% 135803 V |
| 971 |
% 221391 N |
| 972 |
% 2183976 0 |
| 973 |
|
| 974 |
\begin{example} |
| 975 |
\label{ex-mbma} |
| 976 |
\begin{tabular}{lcccccccccccccl} |
| 977 |
1 & \_&\_&\_&\_&\_&\_&{\bf g}&e&s&n&e&d&e&pv+Ige\\ |
| 978 |
2 & \_&\_&\_&\_&\_&g&e&s&n&e&d&e&n&0\\ |
| 979 |
3 & \_&\_&\_&\_&g&e&s&n&e&d&e&n&\_&V\\ |
| 980 |
4 & \_&\_&\_&g&e&s&n&e&d&e&n&\_&\_&0\\ |
| 981 |
5 & \_&\_&g&e&s&n&e&d&e&n&\_&\_&\_&0+Rij$>$e\\ |
| 982 |
6 &\_&g&e&s&n&e&d&e&n&\_&\_&\_&\_&0\\ |
| 983 |
7 & g&e&s&n&e&d&e&n&\_&\_&\_&\_&\_&pv\\ |
| 984 |
8 & e&s&n&e&d&e&n&\_&\_&\_&\_&\_&\_&0\\ |
| 985 |
\end{tabular} |
| 986 |
|
| 987 |
\end{example} |
| 988 |
%interessant dat de adjectieven geen morf analyse krijgen en verbs wel |
| 989 |
% dus aangesneden/ADJ heeft als morf 'aangesneden' en als V wel [aan][ge][snijd][en] |
| 990 |
%Ko: Inmiddels is dit gedrag veranderd denk ik. |
| 991 |
% aangesneden was in mbma alleen als WW bekend. % Adjectivisch gebruik gaf een PoS tag mismatch en dan komt het originele woord als anaylyze er uit. |
| 992 |
% Nu "weet" mbma dat WW soms als ADJ optreden en geeft de WW analyze terug |
| 993 |
% \begin{verbatim} |
| 994 |
% _,_,_,_,_,a,f,g,e,z,o,n,k,0 |
| 995 |
% _,_,_,_,a,f,g,e,z,o,n,k,e,pv+Ige |
| 996 |
% _,_,_,a,f,g,e,z,o,n,k,e,n,0 |
| 997 |
% _,_,a,f,g,e,z,o,n,k,e,n,_,V |
| 998 |
% _,a,f,g,e,z,o,n,k,e,n,_,_,0+Ri>o |
| 999 |
% a,f,g,e,z,o,n,k,e,n,_,_,_,0 |
| 1000 |
% f,g,e,z,o,n,k,e,n,_,_,_,_,0 |
| 1001 |
% g,e,z,o,n,k,e,n,_,_,_,_,_,pv |
| 1002 |
% e,z,o,n,k,e,n,_,_,_,_,_,_,0 |
| 1003 |
% _,_,_,_,_,_,a,f,g,e,z,o,o,P |
| 1004 |
% -- |
| 1005 |
% _,_,_,d,i,e,p,g,e,z,o,n,k,0 |
| 1006 |
% _,_,d,i,e,p,g,e,z,o,n,k,e,A |
| 1007 |
% _,d,i,e,p,g,e,z,o,n,k,e,n,0 |
| 1008 |
% d,i,e,p,g,e,z,o,n,k,e,n,_,0 |
| 1009 |
% i,e,p,g,e,z,o,n,k,e,n,_,_,0 |
| 1010 |
% e,p,g,e,z,o,n,k,e,n,_,_,_,0 |
| 1011 |
% p,g,e,z,o,n,k,e,n,_,_,_,_,0 |
| 1012 |
% g,e,z,o,n,k,e,n,_,_,_,_,_,0 |
| 1013 |
% e,z,o,n,k,e,n,_,_,_,_,_,_,0/P |
| 1014 |
% _,_,_,_,_,_,d,i,e,p,g,i,n,A |
| 1015 |
% -- |
| 1016 |
% e,z,o,n,g,e,n,_,_,_,_,_,_,0 |
| 1017 |
% _,_,_,_,_,_,g,e,z,o,n,k,e,A|pv+Ige |
| 1018 |
% _,_,_,_,_,g,e,z,o,n,k,e,n,0 |
| 1019 |
% _,_,_,_,g,e,z,o,n,k,e,n,_,0|V |
| 1020 |
% _,_,_,g,e,z,o,n,k,e,n,_,_,0|0+Ri>o |
| 1021 |
% _,_,g,e,z,o,n,k,e,n,_,_,_,0 |
| 1022 |
% _,g,e,z,o,n,k,e,n,_,_,_,_,0 |
| 1023 |
% g,e,z,o,n,k,e,n,_,_,_,_,_,0|pv |
| 1024 |
% e,z,o,n,k,e,n,_,_,_,_,_,_,0/P|0 |
| 1025 |
% _,_,_,_,_,_,g,e,z,o,n,n,e,pv+Ige |
| 1026 |
% \end{verbatim} |
| 1027 |
|
| 1028 |
|
| 1029 |
%iris: NB in tadpole paper staat dat morf-analyzer 5 chars left en right heeft, en dus 11 features. Maar in huidige versie zijn dat er toch echt 13! |
| 1030 |
% en verder staat er dat het 363,690 woorden uit CELEX zijn en ik heb er nu slechts 293,570 ? groot verschil? |
| 1031 |
Note that the older version of the morphological analyzer reported in \cite{Tadpole} was trained on a slightly different version of the data with a context of only 5 instead of 6 characters left and right. |
| 1032 |
In that older study the performance of the morphological analyzer was evaluated on a 10\% held out set and an accuracy of 79\% on {\it unseen} words was attained. |
| 1033 |
|
| 1034 |
\subsubsection{MBMA Configuration file options} |
| 1035 |
%Configuratie file opties: |
| 1036 |
When you want to set certain options for the MBMA module, place them under the heading {\tt [[mbma]] }in the Frog configuration file. |
| 1037 |
|
| 1038 |
%iris: @Ko in hoeverre is het nuttig om config file opties te beschrijven als deze verplicht zijn en niet gewijzigd mogen of kunnen worden? |
| 1039 |
% ik beschrijf hierboven al dat MBMA op Celex is getraind. |
| 1040 |
% je kunt toch niet wijzigen: "clex-set=WOTAN" -> dan doet tie vast niks meer? |
| 1041 |
|
| 1042 |
\begin{itemize} |
| 1043 |
\item {\tt set} FoLiA set name for the morphological tag set that MBMA uses. |
| 1044 |
\item {\tt clex-set} FoLiA set name PoS-tag- set that MBMA uses internally. As MBMA is trained on CELEX, it uses the CELEX POS-tag set, and not the default PoS-tag set (CGN tag set) of the Frog PoS tagger module. However, these internal pos-tags are mapped back to the CGN tag set. |
| 1045 |
|
| 1046 |
%iris: @Ko wanneer precies gebruikt MBMA de CGN tag set en wanneer niet? |
| 1047 |
%NB: |
| 1048 |
%Daarnaast gebruikt MBMA ook de setnamen van de Tagger voor de PoS tags zoals die staan onder {\tt [[tagger]] } |
| 1049 |
%set-.... |
| 1050 |
|
| 1051 |
|
| 1052 |
\item {\tt cgn\_clex\_main}File name of file that contains the mapping of CGN tags to |
| 1053 |
CELEX tags. |
| 1054 |
%iris @KO waar staat die file en hoe heet tie precies? En ik zie het nut niet heel erg van dit soort details in de Frog manual, is wel heeeel erg gedetaileerd. |
| 1055 |
|
| 1056 |
%Ko:Die gebruikt MBMA dus bij de selectie van de 'juiste' analyze. |
| 1057 |
|
| 1058 |
%\item {\tt cgn\_clex\_sub} De naam van de file met de (zeer beperkte!) mapping van |
| 1059 |
%CGN subtags naar MBMA. MBMA gebruikt die om gevonden inflecties te |
| 1060 |
%matchen aan CGN subtags. Voor verfijnde matching en desambiguering. |
| 1061 |
|
| 1062 |
%\item {\tt filter\_diacritics} Hiermee zou je ervoor kunnen zorgen dat ALLE |
| 1063 |
%diacrieten uitgefilterd worden. waarmeer ideeën en ideeen intern |
| 1064 |
%hetzelfde woord zijn. Niet echt een goed plan. (misschien niet vermelden....?) |
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
\item {\tt deep-morph} Alternative to using {\tt --deep-morph} on the command line. |
| 1070 |
\item {\tt treeFile} Name of the trained MVMA Timbl tree (usually IG tree is used). |
| 1071 |
\item {\tt timbOpts} Timbl options that were used for creating the MBMA treeFile. |
| 1072 |
\end{itemize} |
| 1073 |
|
| 1074 |
\subsection{PoS Tagger} |
| 1075 |
\label{sec-bg-pos} |
| 1076 |
|
| 1077 |
%/vol/bigdata/corpora/FrogData/cgn-wotan-dcoi.mbt |
| 1078 |
The PoS tagger in Frog is based on MBT, a memory-based tagger-generator and tagger\footnote{MBT available at http://languagemachines.github.io/mbt/}\cite{mbt} trained on a large Dutch corpus of 10,975,324 tokens in 933,891 sentences. This corpus is a mix of several manually annotated corpora but about 90\% of the data comes from the transcribed Spoken Dutch Corpus of about nine million tokens \cite{CGN2003}. The other ten precent of the training data comes from the ILK corpus (46K tokens), the D-Coi corpus (330K tokens) and the Eindhoven corpus (75K tokens) cite{uit den Boogaart 1975} that were re-tagged with CGN tag set. |
| 1079 |
%todo: citations toevoegen |
| 1080 |
The tag set consists of 12 coarse grained PoS-tags and 280 fine-grained PoS tag labels. Note that the chosen main categories (shown in table \ref{tab-pos-tags}) are well in line with a universal PoS tag set as proposed by \shortcite{Petrov2011} which has almost the same tags. The universal set has a {\it particles} tag for function words that signify negation, mood or tense while CGN has an {\it interjection} tag to label words like `aha' and `ok\'e' that are typically used in spoken utterances. |
| 1081 |
|
| 1082 |
%Petrov: the following twelve POS tags: |
| 1083 |
%NOUN (nouns), VERB (verbs), ADJ (adjectives), |
| 1084 |
%ADV (adverbs), PRON (pronouns), DET (determiners |
| 1085 |
%and articles), ADP (prepositions and postpositions), |
| 1086 |
%NUM (numerals), CONJ (conjunctions), PRT |
| 1087 |
%(particles), ‘.’ (punctuation marks) and X (a catch-all |
| 1088 |
%for other categories such as abbreviations or foreign words). |
| 1089 |
%dit staat in Tadpole paper over tagger data: |
| 1090 |
% The data used for training the TADPOLE tagger consists of a broad selection |
| 1091 |
% of available manually annotated part-of-speech tagged corpora for Dutch tagged |
| 1092 |
% with the Spoken Dutch Corpus tagset (Van Eynde 2004): The approximately ninemillion |
| 1093 |
% word of the transcribed Spoken Dutch Corpus itself (Oostdijk, Goedertier, |
| 1094 |
% Van Eynde, Boves, Martens, Moortgat and Baayen 2002), the ILK corpus with |
| 1095 |
% approximately 46 thousand part-of-speech tagged words, the D-Coi corpus with |
| 1096 |
% approximately 330 thousand words, and the 754-thousandword Eindhoven corpus |
| 1097 |
% (Uit den Boogaart 1975) which has been automatically retagged with the Spoken |
| 1098 |
% Dutch Corpus tagset. Together this accounts for 10,979,827 manually-checked |
| 1099 |
% part-of-speech tagged words, all using the same rich tagset of 316 tags. |
| 1100 |
|
| 1101 |
\subsection{Named Entity Recognition}\label{sec-bg-ner} |
| 1102 |
|
| 1103 |
% module architecture classifier/rules, types of features |
| 1104 |
% training material |
| 1105 |
% evaluation results of module on benchmark data |
| 1106 |
% options to tune, retrain or replace module ? |
| 1107 |
|
| 1108 |
|
| 1109 |
The Named Entity Recognizer (NER) is an MBT classifier \cite{mbt} trained on the |
| 1110 |
SoNar 1 million word corpus labeled with manually verified NER labels. |
| 1111 |
The annotation is flat and in case of nested names, the longest name is annotated. For |
| 1112 |
example a phrase like 'het Gentse Stadsbestuur' is labeled as $het [Gentse stadsbestuur]_{ORG}$. 'Gentse' also refers to a location but the overarching phrase is the name of an organization and this label takes precedence. Dutch determiners are never included as part of the name. Details about the annotation of the training data can be found in the Sonar NE annotation guidelines \cite{NERmanual}. |
| 1113 |
|
| 1114 |
The NER module does not use PoS tags but learns the relation between words and |
| 1115 |
name tags directly. An easy way to adapt the NER module to a new domain is to |
| 1116 |
give an additional name list to the NER module. The names on this list has the |
| 1117 |
following format: the full name followed by a tab and the name label as |
| 1118 |
exemplified here.The name list can be specified in the configuration file under $[[NER]]$ as {\tt known\_ners=nerfile}.\\ |
| 1119 |
|
| 1120 |
\begin{tabular}{ll} |
| 1121 |
Zwarte Zwadderneel & per\\ |
| 1122 |
LaMa groep & org\\ |
| 1123 |
\end{tabular} |
| 1124 |
|
| 1125 |
|
| 1126 |
|
| 1127 |
%/vol/bigdata/corpora/FrogData/ner.data| |
| 1128 |
% 909585 O |
| 1129 |
% 2174 eve |
| 1130 |
% 28635 loc |
| 1131 |
% 9684 misc |
| 1132 |
% 17124 org |
| 1133 |
% 23567 per |
| 1134 |
% 9668 pro |
| 1135 |
|
| 1136 |
\subsection{Phrase Chunker} |
| 1137 |
|
| 1138 |
The phrase chunker module is based on the chunker developed in the 90's \cite{Daelem+1999} and uses MBT \cite{mbt} as classifier. The chunker adopted the BIO tags to represent chunking as a tagging task where B-tags signal the start of the chunk, I-tags inside the chunk and O-tags outside the chunk. |
| 1139 |
In the context of the TTNW project \cite{TTNWW}, the chunker was updated and trained on a newer and larger corpus of one million words, the Lassy Small Corpus \cite{lassy2011}. This corpus a annotated with syntactic trees that were fist converted to a flat structure with a script. |
| 1140 |
|
| 1141 |
|
| 1142 |
|
| 1143 |
%TTNW van Gent @@Antal ? |
| 1144 |
%omgezette Alpino treebank? |
| 1145 |
|
| 1146 |
%Chunking: grouping words into syntactic phrases (e.g. `lead white paints' and ` |
| 1147 |
%flesh tones' are noun phrases). Chunking can be used for dierent purposes, for example |
| 1148 |
%for identifying salient units in term extraction (` |
| 1149 |
%esh tones' makes more sense as aterm than `esh' or `tones' individually) and for identifying the units for answering the `who did what to whom. . . ' questions (`Rembrandt' is the subject who `used' |
| 1150 |
%`lead white paints' as an object). The chunking approach in TTNWW, also based on |
| 1151 |
%the use of machine learning algorithms, was introduced by Daelemans et al. (1999). |
| 1152 |
%As training material, the Lassy Small Corpus was used, which is a syntactic treebank; |
| 1153 |
%tree structures from Lassy were converted into chunks with a rule-based script, and |
| 1154 |
%a memory-based tagger was trained on the chunked sentences. |
| 1155 |
|
| 1156 |
|
| 1157 |
\subsection{Parser} |
| 1158 |
\label{sec-bg-dep} |
| 1159 |
|
| 1160 |
The Constraint-satisfaction inference-based dependency parser (CSI-DP) \cite{Canisius2009} is trained on the manually verified {\it Lassy small} corpus\cite{alpino2013} and several million tokens of automatically parsed text by the Alpino parser \cite{vanEynde2004} from Wikipedia pages, newspaper articles, and the Eindhoven corpus. |
| 1161 |
%iris: ik kan niet terug vinden hoeveel precies, en wat het bronbestand was van de dep files zoals /vol/customopt/lamachine/etc/frog/Frog.mbdp.1.0.rels.ibase |
| 1162 |
|
| 1163 |
%Lassy klein consists of 1,092,051 tokens in 64,905 sentences taken from different domains and text genres. |
| 1164 |
%wc /vol/bigdata/corpora/FrogData/lassy-klein.mbt - 64905 <utt> |
| 1165 |
|
| 1166 |
When CSI-DP is parsing a new sentence, the parser first aims to predict low level syntactic information, such as the syntactic dependency relation between each pair of tokens in the sentence and the possible relation types a certain token can have. These low level predictions take the form of soft weighted constraints. In the second step, the parser aims to generate the final parse tree where each token has only one relation with another token using a constraint solver based on the Eisner parsing algorithm \cite{Eisner2000}. The soft constraints determine the search space for the constraint solver to find the optimal solution. |
| 1167 |
|
| 1168 |
%Ko reimplemented version in C++ of the phd thesis of Sander. |
| 1169 |
%The parser uses soft weighted constraints to construct the best candidate parse tree. |
| 1170 |
CSI-DP applies three types of constraints: dependency constraints, modifier constraints and direction constraints. For each constraint type, a separate timbl classifier is trained. Each pair of tokens in the training set occurs with a certain set of possible dependency relations and this information is learned by the dependency constraint classifier. An instance is created for each token pair and its relation where one is the modifier and and one is head. Note that a pair always creates two instances where these roles are switched. The timbl classifier trained on this instance base will then for each token pair predict zero, one or multiple relations and these relations form the soft constraints that are the input for the general solver who selects the overall best parse tree. |
| 1171 |
%In case no relation was predicted for a certain token, this token gets a unknown-label |
| 1172 |
.%p.91 thesis Sander |
| 1173 |
The potential relation between the token pair is expressed in the following features: the words and PoS tags of each token and its left and right neighboring token, the distance between the two tokens in number of intermediate tokens, and a position feature expressing whether the token is located right or left of the potential head word. |
| 1174 |
|
| 1175 |
For each token in the sentence, instances are created between the token and all other tokens in the sentence with a maximum distance of 8 tokens left and right. The maximum distance of 8 tokens covers 95\% of all present dependency relations in the training set \cite{Canisius+2006}. This leads to a unbalance of instances that express an actual syntactic relation between a word pair and negative cases. Therefore, the negative instances in the training set were reduced by randomly sampling a set of negative cases that is twice as big the number of positive cases (based on experiments in \cite{Canisius2009}). |
| 1176 |
|
| 1177 |
The second group of constraints are the modifier constraints that express for each single token the possible syntactic relations that it has in the training set. The feature set for these instances consist of the local context in 1 or 2 ?? words and PoS tags of the token. |
| 1178 |
|
| 1179 |
The third group of direction constraints specify for each token in the sentence whether the potential linked head word is left or right of the word, or the root. Based on evidence in the training set, a word is added with one, two or three possible positions as soft weighted constraints. For example the token {\it politie} might occur in a left positioned subject relation to a root verb, a right positioned direct object relation, of in an elliptic sentence as the root form itself. |
| 1180 |
We refer to chapter 5 of \shortcite{Canisius2009} for all details concerning CSI-DEP. |
| 1181 |
|
| 1182 |
%When we compare CSI-DP to the Alpino parser, the accuracy of Alpino is better, but Alpino is X times slower than CSI-DP. |
| 1183 |
%iris: hebben we hier resultaten over?! hoe goed/slecht en snel in vergelijking. |
| 1184 |
|
| 1185 |
\section{Frog in practice} |
| 1186 |
|
| 1187 |
Frog has been used in research projects mostly because of its capacity to |
| 1188 |
process Dutch texts efficiently and analyze the texts sufficiently accurately. |
| 1189 |
The purposes range from corpus construction to linguistic research and natural language processing and text analytics applications. We provide a overview of work reporting to use Frog, in topical clusters. |
| 1190 |
|
| 1191 |
%TODO: antal |
| 1192 |
|
| 1193 |
\subsubsection{Corpus construction} |
| 1194 |
|
| 1195 |
Frog, named Tadpole before 2011, has been used for the automated annotation of, mostly, POS tags and lemmas of Dutch corpora. When the material of Frog was post-corrected manually, this is usually done on the basis of the probabilities produced by the POS tagger and setting a confidentiality threshold \cite{VandenBosch+06}. |
| 1196 |
|
| 1197 |
\begin{itemize} |
| 1198 |
\item The 500-million-word SoNaR corpus of written contemporary Dutch, and its 50-million word predecessor D-Coi \cite{Oostdijk+08,oostdijk2013construction}; |
| 1199 |
\item The 500-million word Lassy Large corpus \cite{van2013large} that has also been parsed automatically with the ALPINO parser \cite{Bouma+01}; |
| 1200 |
\item The 115-hour JASMIN corpus of transcribed Dutch, spoken by elderly, non-native speakers, and children \cite{Cucchiarini+13}; |
| 1201 |
\item The 7-million word Dutch subcorpus of a multilingual parallel corpus of automotive texts \cite{lefever2009language}; |
| 1202 |
\item The {\it Insight Interaction} corpus of 15 20-minute transcribed multi-modal dialogues \cite{brone2015insight}; |
| 1203 |
\item The SUBTLEX-NL word frequency database was based on an automatically analyzed 44-million word corpus of Dutch subtitles of movies and television shows \cite{keuleers2010subtlex}. |
| 1204 |
\end{itemize} |
| 1205 |
|
| 1206 |
\subsubsection{Feature generation for text filtering and Natural Language Processing} |
| 1207 |
|
| 1208 |
Frog's analyses can help to zoom in on particular linguistic abstractions over text, such as adjectives or particular constructions, to be used in further processing. They can also help to generate annotation layers that can act as features in further NLP processing steps. POS tags and lemmas are mostly used for these purposes. We list a number of examples across the NLP board: |
| 1209 |
|
| 1210 |
\begin{itemize} |
| 1211 |
\item Sentence-level analysis tasks such as word sense disambiguation \cite{VanGompel10} and entity recognition \cite{VandeCamp+11}; |
| 1212 |
\item Text-level tasks such as authorship attribution \cite{luyckx2011scalability}, emotion detection \cite{vaassen2011automatic}, sentiment analysis \cite{hogenboom2014multi}, and readability prediction \cite{de2014using}; |
| 1213 |
\item Text-to-text processing tasks such as machine translation \cite{Haque+11} and sub-sentential alignment for machine translation \cite{macken2010sub}; |
| 1214 |
\item Filtering Dutch texts for resource development, such as filtering adjectives for developing a subjectivity lexicon \cite{de2012vreselijk}, and POS tagging to assist shallow chunking of Dutch texts for bilingual terminology extraction \cite{macken2013texsis}. |
| 1215 |
\end{itemize} |
| 1216 |
|
| 1217 |
\chapter{Credits and references} |
| 1218 |
\label{ch-credit} |
| 1219 |
If you use Frog for your own work, please cite this reference manual |
| 1220 |
\begin{quotation} %zoiets |
| 1221 |
Frog, A Natural Language Processing Suite for Dutch, Reference guide, Iris Hendrickx, Antal van den Bosch, Maarten van Gompel en Ko van der Sloot, Language and Speech Technology Technical Report Series 16-02, Radboud University Nijmegen, Draft 0.13.1 - June 2016 |
| 1222 |
\end{quotation} |
| 1223 |
|
| 1224 |
%%Walter The approach of integrating modules into a larger NLP pipeline and why memory-based learning is a good approach for training these modules is described in the 2005 CUP book (Memory-based language processing) |
| 1225 |
|
| 1226 |
The following paper describes Tadpole, the predecessor of Frog. It contains a |
| 1227 |
subset of the components described in this paper: |
| 1228 |
|
| 1229 |
\begin{quotation} |
| 1230 |
Van den Bosch, A., Busser, G.J., Daelemans, W., and Canisius, S. (2007). An efficient memory-based morphosyntactic tagger and parser for Dutch, In F. van Eynde, P. Dirix, I. Schuurman, and V. Vandeghinste (Eds.), Selected Papers of the 17th Computational Linguistics in the Netherlands Meeting, Leuven, Belgium, pp. 99-114 |
| 1231 |
\end{quotation} |
| 1232 |
|
| 1233 |
%letterlijk gekopieerd van de github pagina: |
| 1234 |
We would like to thank everybody who worked on Frog and its predecessors. |
| 1235 |
Frog, formerly known as Tadpole and before that as MB-TALPA, was coded by |
| 1236 |
Bertjan Busser, Ko van der Sloot, Maarten van Gompel, and Peter Berck, |
| 1237 |
subsuming code by Sander Canisius (constraint satisfaction inference-based |
| 1238 |
dependency parser), Antal van den Bosch (MBMA, MBLEM, tagger-lemmatizer |
| 1239 |
integration), Jakub Zavrel (MBT), and Maarten van Gompel (Ucto). In the context |
| 1240 |
of the CLARIN-NL infrastructure project TTNWW, Frederik Vaassen (CLiPS, |
| 1241 |
Antwerp) created the base phrase chunking module, and Bart Desmet (LT3, Ghent) |
| 1242 |
provided the data for the named-entity module. |
| 1243 |
|
| 1244 |
Maarten van Gompel designed the FoLiA XML output format that Frog produces, and |
| 1245 |
also wrote a Frog binding for |
| 1246 |
Python\footnote{\url{https://github.com/proycon/python-frog}}, as well as a |
| 1247 |
separate Frog client in Python\footnote{Part of PyNLPL: |
| 1248 |
\url{https://github.com/proycon/pynlpl}}. Wouter van Atteveldt wrote a Frog client in |
| 1249 |
R\footnote{\url{https://github.com/vanatteveldt/frogr/}}, and Machiel Molenaar |
| 1250 |
wrote a Frog client for Go\footnote{\url{https://github.com/Machiel/gorf}}. |
| 1251 |
|
| 1252 |
The development of Frog relies on earlier work and ideas from Ko van der Sloot |
| 1253 |
(lead programmer of MBT and TiMBL and the TiMBL API), Walter Daelemans, Jakub |
| 1254 |
Zavrel, Peter Berck, Gert Durieux, and Ton Weijters. |
| 1255 |
|
| 1256 |
The development and improvement of Frog also relies on your bug reports, |
| 1257 |
suggestions, and comments. Use the github issue tracker at |
| 1258 |
\url{https://github.com/LanguageMachines/frog/issues/} or mail \url{lamasoftware |
| 1259 |
@science.ru.nl}. |
| 1260 |
|
| 1261 |
|
| 1262 |
|
| 1263 |
\bibliographystyle{fullname} |
| 1264 |
\bibliography{bieb} |
| 1265 |
|
| 1266 |
\appendix |
| 1267 |
|
| 1268 |
\chapter{Alpino syntactic dependency labels} \label{app-dep} |
| 1269 |
This table is taken from Alpino annotation reference manual \cite{lassy2011} : |
| 1270 |
%iris: mag dat, letterlijk overnemen? |
| 1271 |
|
| 1272 |
\begin{tabular}{ll} |
| 1273 |
dependentielabel & OMSCHRIJVING\\ |
| 1274 |
APP & appositie, bijstelling\\ |
| 1275 |
BODY & romp (bij complementizer))\\ |
| 1276 |
CMP & complementizer\\ |
| 1277 |
CNJ & lid van nevenschikking\\ |
| 1278 |
CRD & nevenschikker (als hoofd van conjunctie)\\ |
| 1279 |
DET & determinator\\ |
| 1280 |
DLINK & discourse-link\\ |
| 1281 |
DP & discourse-part\\ |
| 1282 |
HD & hoofd\\ |
| 1283 |
HDF & afsluitend element van circumpositie\\ |
| 1284 |
LD & locatief of directioneel complement\\ |
| 1285 |
ME & maat (duur, gewicht, . . . ) complement\\ |
| 1286 |
MOD & bijwoordelijke bepaling\\ |
| 1287 |
MWP & deel van een multi-word-unit\\ |
| 1288 |
NUCL & kernzin\\ |
| 1289 |
OBCOMP & vergelijkingscomplement\\ |
| 1290 |
OBJ1 & direct object, lijdend voorwerp\\ |
| 1291 |
OBJ2 & secundair object (meewerkend, belanghebbend, ondervindend)\\ |
| 1292 |
PC & voorzetselvoorwerp\\ |
| 1293 |
POBJ1 & voorlopig direct object\\ |
| 1294 |
PREDC & predicatief complement\\ |
| 1295 |
PREDM & bepaling van gesteldheid ‘tijdens de handeling’\\ |
| 1296 |
RHD & hoofd van een relatieve zin\\ |
| 1297 |
SAT & satelliet; aan- of uitloop\\ |
| 1298 |
SE & verplicht reflexief object\\ |
| 1299 |
SU & subject, onderwerp\\ |
| 1300 |
SUP & voorlopig subject\\ |
| 1301 |
SVP & scheidbaar deel van werkwoord\\ |
| 1302 |
TAG & aanhangsel, tussenvoegsel\\ |
| 1303 |
VC & verbaal complement\\ |
| 1304 |
WHD & hoofd van een vraagzin\\ |
| 1305 |
\end{tabular} |
| 1306 |
|
| 1307 |
%willen we alle CGN tags in the manual hebben? |
| 1308 |
%(proycon): vind ik wel een goed idee eigenlijk ja |
| 1309 |
|
| 1310 |
%Ko: MBMA gebruikt intern CELEX tags, ook vermelden? |
| 1311 |
%iris: ik noem ze maar als gebruiker doe je daar niks mee, dus niet nodig als appendix vind ik. |
| 1312 |
\end{document} |