You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tr><tdstyle="text-align: center"><code>.</code></td><tdstyle="text-align: left">direct precedence</td><tdstyle="text-align: center"><imgsrc="../images/A-pred-B.svg" alt="" /></td><tdstyle="text-align: left">For non-terminal nodes, precedence is determined by the right-most and left-most terminal children. In corpora with multiple segmentations the layer on which consecutivity holds may be specified with <code>.layer</code></td><td></td></tr>
141
-
<tr><tdstyle="text-align: center"><code>.*</code></td><tdstyle="text-align: left">indirect precedence</td><tdstyle="text-align: center"><imgsrc="../images/A-pred-ind-B.svg" alt="" /></td><tdstyle="text-align: left">For specific sizes of precedence spans, <code>.n,m</code> can be used, e.g. <code>.3,4</code> - between 3 and 4 token distance; the default maximum distance for <code>.*</code> is 50 tokens. As above, segmentation layers may be specified, e.g. <code>.layer,3,4</code></td><td></td></tr>
142
-
<tr><tdstyle="text-align: center"><code>^</code></td><tdstyle="text-align: left">directly near</td><tdstyle="text-align: center"><imgsrc="../images/A-pred-B.svg" alt="" /> or <imgsrc="../images/B-pred-A.svg" alt="" /></td><tdstyle="text-align: left">Same as precedence, but in either order. In corpora with multiple segmentations the layer on which consecutivity holds may be specified with <code>^layer</code></td><td></td></tr>
143
-
<tr><tdstyle="text-align: center"><code>^*</code></td><tdstyle="text-align: left">indirectly near</td><tdstyle="text-align: center"><imgsrc="../images/A-pred-ind-B.svg" alt="" /> or <imgsrc="../images/B-pred-ind-A.svg" alt="" /></td><tdstyle="text-align: left">Like indirect precedence in either order. The form <code>^n,m</code> can be used, e.g. <code>^3,4</code> - between 3 and 4 token distance; the default maximum distance for <code>^*</code> is 50 tokens. As above, segmentation layers may be specified, e.g. <code>^layer,3,4</code></td><td></td></tr>
144
-
<tr><tdstyle="text-align: center"><code>></code></td><tdstyle="text-align: left">direct dominance</td><tdstyle="text-align: center"><imgsrc="../images/A-dom-B.svg" alt="" /></td><tdstyle="text-align: left">A specific edge type may be specified, e.g. <code>>secedge</code> to find secondary edges. Edge labels are specified in brackets, e.g. <code>>[func="OA"]</code> for an edge with the function 'object, accusative'</td><td></td></tr>
145
-
<tr><tdstyle="text-align: center"><code>>*</code></td><tdstyle="text-align: left">indirect dominance</td><tdstyle="text-align: center"><imgsrc="../images/A-dom-ind-B.svg" alt="" /></td><tdstyle="text-align: left">For specific distance of dominance, <code>>n,m</code> can be used, e.g. <code>>3,4</code> - dominates with 3 to 4 edges distance</td><td></td></tr>
146
-
<tr><tdstyle="text-align: center"><code>@*</code></td><tdstyle="text-align: left">part of sub-corpus</td><tdstyle="text-align: center"></td><tdstyle="text-align: left">Left attribute is part of a sub-corpus having the attribute of the right-hand side. For specific distance range in the sub-corpus hierarchy, <code>@n,m</code> can be used.</td><td></td></tr>
147
-
<tr><tdstyle="text-align: center"><code>_=_</code></td><tdstyle="text-align: left">identical coverage</td><tdstyle="text-align: center"><imgsrc="../images/A-cov-ident-B.svg" alt="" /></td><tdstyle="text-align: left">Applies when two annotations cover the exact same span of tokens</td><td></td></tr>
148
-
<tr><tdstyle="text-align: center"><code>_i_</code></td><tdstyle="text-align: left">inclusion</td><tdstyle="text-align: center"><imgsrc="../images/A-cov-incl-B.svg" alt="" /></td><tdstyle="text-align: left">Applies when one annotation covers a span identical to or larger than another</td><td></td></tr>
<tr><tdstyle="text-align: center"><code>_l_</code></td><tdstyle="text-align: left">left aligned</td><tdstyle="text-align: center"><imgsrc="../images/A-cov-left-B.svg" alt="" /></td><tdstyle="text-align: left">Both elements span an area beginning with the same token</td><td></td></tr>
151
-
<tr><tdstyle="text-align: center"><code>_r_</code></td><tdstyle="text-align: left">right aligned</td><tdstyle="text-align: center"><imgsrc="../images/A-cov-right-B.svg" alt="" /></td><tdstyle="text-align: left">Both elements span an area ending with the same token</td><td></td></tr>
152
-
<tr><tdstyle="text-align: center"><code>==</code></td><tdstyle="text-align: left">value identity</td><tdstyle="text-align: center"><strong>A = B</strong></td><tdstyle="text-align: left">The value of the annotation or token A is identical to that of B (this operator does not bind, i.e. the nodes must be connected by some other criteria too)</td><td></td></tr>
153
-
<tr><tdstyle="text-align: center"><code>!=</code></td><tdstyle="text-align: left">value difference</td><tdstyle="text-align: center"><strong>A ≠ B</strong></td><tdstyle="text-align: left">The value of the annotation or token A is different from B (this operator does not bind, i.e. the nodes must be connected by some other criteria too)</td><td></td></tr>
154
-
<tr><tdstyle="text-align: center"><code>->LABEL</code></td><tdstyle="text-align: left">labeled pointing relation</td><tdstyle="text-align: center"><imgsrc="../images/A-point-direct-B.svg" alt="" /></td><tdstyle="text-align: left">A labeled, directed relationship between two elements. Annotations can be specified with <code>->LABEL[annotation="VALUE"]</code></td><td></td></tr>
155
-
<tr><tdstyle="text-align: center"><code>->LABEL *</code></td><tdstyle="text-align: left">indirect pointing relation</td><tdstyle="text-align: center"><imgsrc="../images/A-point-ind-B.svg" alt="" /></td><tdstyle="text-align: left">An indirect labeled relationship between two elements. The length of the chain may be specified with <code>->LABEL n,m</code> for relation chains of length n to m</td><td></td></tr>
156
-
<tr><tdstyle="text-align: center"><code>#x:arity=n</code></td><tdstyle="text-align: left">arity</td><tdstyle="text-align: center"><imgsrc="../images/A-arity.svg" alt="" /></td><tdstyle="text-align: left">Specifies the amount of directly dominated children that the searched node has</td><td></td></tr>
157
-
<tr><tdstyle="text-align: center"><code>_ident_</code></td><tdstyle="text-align: left">node identity</td><tdstyle="text-align: center"></td><tdstyle="text-align: left">True for two attributes that belong to the same node</td><td></td></tr>
<tr><tdstyle="text-align: left"><code>.</code></td><tdstyle="text-align: right">direct precedence</td><tdstyle="text-align: left"><imgsrc="../images/A-pred-B.svg" alt="" /></td><tdstyle="text-align: left">For non-terminal nodes, precedence is determined by the right-most and left-most terminal children. In corpora with multiple segmentations the layer on which consecutivity holds may be specified with <code>.layer</code></td></tr>
141
+
<tr><tdstyle="text-align: left"><code>.*</code></td><tdstyle="text-align: right">indirect precedence</td><tdstyle="text-align: left"><imgsrc="../images/A-pred-ind-B.svg" alt="" /></td><tdstyle="text-align: left">For specific sizes of precedence spans, <code>.n,m</code> can be used, e.g. <code>.3,4</code> - between 3 and 4 token distance; the default maximum distance for <code>.*</code> is 50 tokens. As above, segmentation layers may be specified, e.g. <code>.layer,3,4</code></td></tr>
142
+
<tr><tdstyle="text-align: left"><code>^</code></td><tdstyle="text-align: right">directly near</td><tdstyle="text-align: left"><imgsrc="../images/A-pred-B.svg" alt="" /> or <imgsrc="../images/B-pred-A.svg" alt="" /></td><tdstyle="text-align: left">Same as precedence, but in either order. In corpora with multiple segmentations the layer on which consecutivity holds may be specified with <code>^layer</code></td></tr>
143
+
<tr><tdstyle="text-align: left"><code>^*</code></td><tdstyle="text-align: right">indirectly near</td><tdstyle="text-align: left"><imgsrc="../images/A-pred-ind-B.svg" alt="" /> or <imgsrc="../images/B-pred-ind-A.svg" alt="" /></td><tdstyle="text-align: left">Like indirect precedence in either order. The form <code>^n,m</code> can be used, e.g. <code>^3,4</code> - between 3 and 4 token distance; the default maximum distance for <code>^*</code> is 50 tokens. As above, segmentation layers may be specified, e.g. <code>^layer,3,4</code></td></tr>
144
+
<tr><tdstyle="text-align: left"><code>></code></td><tdstyle="text-align: right">direct dominance</td><tdstyle="text-align: left"><imgsrc="../images/A-dom-B.svg" alt="" /></td><tdstyle="text-align: left">A specific edge type may be specified, e.g. <code>>secedge</code> to find secondary edges. Edge labels are specified in brackets, e.g. <code>>[func="OA"]</code> for an edge with the function 'object, accusative'</td></tr>
145
+
<tr><tdstyle="text-align: left"><code>>*</code></td><tdstyle="text-align: right">indirect dominance</td><tdstyle="text-align: left"><imgsrc="../images/A-dom-ind-B.svg" alt="" /></td><tdstyle="text-align: left">For specific distance of dominance, <code>>n,m</code> can be used, e.g. <code>>3,4</code> - dominates with 3 to 4 edges distance</td></tr>
146
+
<tr><tdstyle="text-align: left"><code>@*</code></td><tdstyle="text-align: right">part of sub-corpus</td><tdstyle="text-align: left"></td><tdstyle="text-align: left">Left attribute is part of a sub-corpus having the attribute of the right-hand side. For specific distance range in the sub-corpus hierarchy, <code>@n,m</code> can be used.</td></tr>
147
+
<tr><tdstyle="text-align: left"><code>_=_</code></td><tdstyle="text-align: right">identical coverage</td><tdstyle="text-align: left"><imgsrc="../images/A-cov-ident-B.svg" alt="" /></td><tdstyle="text-align: left">Applies when two annotations cover the exact same span of tokens</td></tr>
148
+
<tr><tdstyle="text-align: left"><code>_i_</code></td><tdstyle="text-align: right">inclusion</td><tdstyle="text-align: left"><imgsrc="../images/A-cov-incl-B.svg" alt="" /></td><tdstyle="text-align: left">Applies when one annotation covers a span identical to or larger than another</td></tr>
<tr><tdstyle="text-align: left"><code>_l_</code></td><tdstyle="text-align: right">left aligned</td><tdstyle="text-align: left"><imgsrc="../images/A-cov-left-B.svg" alt="" /></td><tdstyle="text-align: left">Both elements span an area beginning with the same token</td></tr>
151
+
<tr><tdstyle="text-align: left"><code>_r_</code></td><tdstyle="text-align: right">right aligned</td><tdstyle="text-align: left"><imgsrc="../images/A-cov-right-B.svg" alt="" /></td><tdstyle="text-align: left">Both elements span an area ending with the same token</td></tr>
152
+
<tr><tdstyle="text-align: left"><code>==</code></td><tdstyle="text-align: right">value identity</td><tdstyle="text-align: left"><strong>A = B</strong></td><tdstyle="text-align: left">The value of the annotation or token A is identical to that of B (this operator does not bind, i.e. the nodes must be connected by some other criteria too)</td></tr>
153
+
<tr><tdstyle="text-align: left"><code>!=</code></td><tdstyle="text-align: right">value difference</td><tdstyle="text-align: left"><strong>A ≠ B</strong></td><tdstyle="text-align: left">The value of the annotation or token A is different from B (this operator does not bind, i.e. the nodes must be connected by some other criteria too)</td></tr>
154
+
<tr><tdstyle="text-align: left"><code>->LABEL</code></td><tdstyle="text-align: right">labeled pointing relation</td><tdstyle="text-align: left"><imgsrc="../images/A-point-direct-B.svg" alt="" /></td><tdstyle="text-align: left">A labeled, directed relationship between two elements. Annotations can be specified with <code>->LABEL[annotation="VALUE"]</code></td></tr>
155
+
<tr><tdstyle="text-align: left"><code>->LABEL *</code></td><tdstyle="text-align: right">indirect pointing relation</td><tdstyle="text-align: left"><imgsrc="../images/A-point-ind-B.svg" alt="" /></td><tdstyle="text-align: left">An indirect labeled relationship between two elements. The length of the chain may be specified with <code>->LABEL n,m</code> for relation chains of length n to m</td></tr>
156
+
<tr><tdstyle="text-align: left"><code>#x:arity=n</code></td><tdstyle="text-align: right">arity</td><tdstyle="text-align: left"><imgsrc="../images/A-arity.svg" alt="" /></td><tdstyle="text-align: left">Specifies the amount of directly dominated children that the searched node has</td></tr>
157
+
<tr><tdstyle="text-align: left"><code>_ident_</code></td><tdstyle="text-align: right">node identity</td><tdstyle="text-align: left"></td><tdstyle="text-align: left">True for two attributes that belong to the same node</td></tr>
<tr><tdstyle="text-align: center"><code>#x:tokenarity=n</code></td><tdstyle="text-align: left">tokenarity</td><tdstyle="text-align: center"><imgsrc="../images/A-tokenarity.svg" alt="" /></td><tdstyle="text-align: left">Specifies the length of the span of tokens covered by the node</td></tr>
168
-
<tr><tdstyle="text-align: center"><code>#x:root</code></td><tdstyle="text-align: left">root</td><tdstyle="text-align: center"><imgsrc="../images/A-root.svg" alt="" /></td><tdstyle="text-align: left">Specifies that the node is not dominated by any other node within its namespace <strong>s</strong></td></tr>
168
+
<tr><tdstyle="text-align: center"><code>#x:root</code></td><tdstyle="text-align: left">root</td><tdstyle="text-align: center"><imgsrc="../images/A-root.svg" alt="" /></td><tdstyle="text-align: left">Specifies that the node is not dominated by any other node within its namespace <strong>s</strong></td></tr>
<p>For the desktop version of ANNIS, you most probably don't need to change any of the default configuration and you can skip this section.
139
139
If you are installing ANNIS on a server however, you might want to tweak the settings.
140
140
The <ahref="http://en.wikipedia.org/w/index.php?title=.properties&oldid=521500688">Java Properties</a>, <ahref="https://toml.io/">TOML</a> and <ahref="http://www.json.org/">JSON</a> file formats are used for different kind of configuration.</p>
141
-
<p>ANNIS uses the Spring Boot configuration system and thus it will search for a Java Properties based configuration file named <code>application.properties</code> in the current working directory or a <code>config</code> sub-directory of the working directory.<supclass="footnote-reference"><ahref="#working-dir">1</a></sup>
142
-
You can also use the command line argument <code>--spring.config.location=file:/<location-on-disk></code> to specify a specific configuration file.
143
-
More search paths for configurations files are documented in the <ahref="https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/spring-boot-features.html#boot-features-external-config-application-property-files">Spring Boot documentation</a>.</p>
141
+
<p>ANNIS uses the Spring Boot configuration system and thus it will search for a Java Properties based configuration file named <code>application.properties</code> in the current working directory or a <code>config</code> sub-directory of the working directory.</p>
142
+
<divclass="warning">
143
+
Depending on how you start ANNIS, the working directory can be different.
144
+
<p>When using <code>java -jar /path/to/annis-server.jar</code>, the working directory is the same as the working directory of your current shell.
145
+
If you start ANNIS by treating it like an executable file, e.g. by running <code>/path/to/annis-server.jar</code> directly, <strong>the directory containing the jar is used as the working directory</strong> of the application per default.</p>
146
+
</div>
147
+
<p>To avoid confusion from where the file is loaded from, you can specify the configuration file location by passing the command line argument <code>--spring.config.location=file:/<location-on-disk></code> when starting ANNIS.</p>
148
+
<p>More search paths for configurations files are documented in the <ahref="https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/spring-boot-features.html#boot-features-external-config-application-property-files">Spring Boot documentation</a>.</p>
144
149
<p>The following is an example configuration with ANNIS-specific configuration values.</p>
145
150
<pre><codeclass="language-properties"># The port on which this service is listening
<p>Being a Spring Boot application, ANNIS configuration properties also be directly given as <ahref="https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/spring-boot-features.html#boot-features-external-config-command-line-args">command line argument</a>.</p>
<p>Depending on how you start ANNIS, the working directory can be different.
181
-
When using <code>java -jar /path/to/annis-server.jar</code>, the working directory is the same as the working directory of your current shell.
182
-
If you start ANNIS by treating it like an executable file, e.g. by running <code>/path/to/annis-server.jar</code> directly, the directory containing the jar is used as the working directory of the application per default.</p>
0 commit comments