Repository navigation
Expand file tree
/
Copy pathsample_workflow_kidko.html
More file actions
102 lines (99 loc) · 4.4 KB
/
Copy pathsample_workflow_kidko.html
File metadata and controls
102 lines (99 loc) · 4.4 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<article>
<h1>Complex Merging sample</h1>
<section>
This sample demonstrates a complex Pepper workflow whos aim is to
merge corpus data from different sources to a single corpus and make
some postprocessings to bring this corpus to ANNIS. The corpus we
convert in this sample are an excerpt, which was provided by the <a
href="http://www.kiezdeutschkorpus.de/corpus.html">kidko</a> corpus.
Parts of the corpus have been annotated with the tool <a
href="www.exmaralda.org">EXMARaLDA</a> (step 1.1) other parts have
been annotated syntactically and were stored in the <a
href="http://www.ims.uni-stuttgart.de/forschung/ressourcen/werkzeuge/TIGERSearch/doc/html/TigerXML.html">TigerXML
format</a> (step 1.2 until 1.4) and have to be merged together (step 2). Since this
corpus has multiple speakers (three in this sample), it has more than
one primary texts. To prepare such data for ANNIS, we need to
construct a segmentation for each speaker (step 3 and 4). Finally the
data can be exported to teh relANNIS format (step5).
</section>
<section>
<h2>The sample corpus</h2>
We used an excerpt of the <a
href="http://www.kiezdeutschkorpus.de/corpus.html">kidko</a> corpus
to show the workflow.
<blockquote>The KiezDeutsch-Korpus (KiDKo) is a
multi-modal digital corpus of spontaneous discourse data from
informal, oral peer group situations in multi- and monoethnic speech
communities.</blockquote>
In this excerpt we have three different speakers 1) MuH25MA, 2)
SPK101 and 3) SPK102 each having an own primary text. <img alt=""
src="./img/exmaralda.png" /> All three primary texts are
syntactically annotated. These annotations are stored in TigerXML. <br />
The corpus therefore consists of four files: one exmaralda file and
three TigerXML file (one for each speaker). To meet the file
structure proposed by Pepper we get the following file structure: <img
alt="" src="./img/fileStructure.png" /> Since Pepper recommends to
put each format into an extra folder, we have an exmaralda and a
tiger folder at root level. For the tiger sources, we have a folder
for each speaker, this is necessary to address the files with an own
importer each. Since the merging in Pepper is oriented along the
corpus structure, we must ensure, that the file structure (from which
the corpus structure is computed in the used formats) is always the
same. This is also the reason, why all files have the same name.
</section>
<section>
<h2>The workflow</h2>
The workflow we used for our task looks like this:
<code> <?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="/home/florian/work/SaltNPepper/workspace/pepper/pepper-framework/src/main/resources/schema/10/pepper.rnc" type="application/relax-ng-compact-syntax"?>
<pepper-job id="" version="1.0">
<!-- step 1.1 -->
<importer name="EXMARaLDAImporter" path="./exmaralda/myCorpus">
<customization>
<property key="cleanModel">true</property>
<property key="pepper.after.addSLayer">grid</property>
</customization>
</importer>
<!-- step 1.2 -->
<importer name="Tiger2Importer" path="./tiger1/myCorpus">
<customization>
<property key="pepper.after.addSLayer">tree</property>
</customization>
</importer>
<!-- step 1.3 -->
<importer name="Tiger2Importer" path="./tiger2/myCorpus">
<customization>
<property key="pepper.after.addSLayer">tree</property>
</customization>
</importer>
<!-- step 1.4 -->
<importer name="Tiger2Importer" path="./tiger3/myCorpus">
<customization>
<property key="pepper.after.addSLayer">tree</property>
</customization>
</importer>
<!-- step 2 -->
<manipulator name="Merger">
<customization>
<property key="firstAsBase">true</property>
</customization>
</manipulator>
<!-- step 3 -->
<manipulator name="Timeline2Token"/>
<!-- step 4 -->
<manipulator name="OrderRelationAdder"/>
<!-- <exporter name="DOTExporter" path="./dot"/>-->
<!-- step 5 -->
<exporter name="RelANNISExporter" path="./relANNIS"/>
</pepper-job> </code>
</section>
</article>
</body>
</html>