blob: 641b7433f8b5e04a95c34ccc2cd042f35740f7c6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
<!ENTITY imgroot "images/tools/ruta/workbench/" >
<!ENTITY % uimaents SYSTEM "../../target/docbook-shared/entities.ent" >
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<section id="">
<title>Creation of Tree Word Lists</title>
Tree word lists are external resources, which can be used
to annotate all occurrences of list items in a document
with a given annotation type, very fast. For more details
on their use, see <xref linkend='' />.
Since simple tree and multi tree word lists have to be compiled
the UIMA Ruta Workbench provides an easy way to compile
them from ordinary text files. These text files have to
containing one item per line, for example, like in the
following list of first names:
To compile a simple tree word list from a text file,
right-click on the text file in UIMA Ruta script
explorer. The resulting menu is shown in
<xref linkend='' />.
<figure id="">
<title>Create a simple tree word list
<imageobject role="html">
<imagedata width="250px" format="PNG" align="center"
fileref="&imgroot;create_tree_lists/create_tree_lists.png" />
<imageobject role="fo">
<imagedata width="3.5in" format="PNG" align="center"
fileref="&imgroot;create_tree_lists/create_tree_lists.png" />
Create a simple tree word list.
When hovering over UIMA Ruta item you can choose
<quote>Convert to TWL</quote>.
Click on it and a tree word list with the same name as the original
file is generated in the same folder.
You can also generate several tree word lists at once. To do so,
just select
multiple files and then right-click and do the same like for a single
list. You will get one tree word list for every selected file.
To generate a multi tree work list, select all files, which should be
into the multi tree word list. Again right-click and select
<quote>Convert to Multi TWL</quote>
under item UIMA Ruta. A multi tree word list
will be created.