diff --git a/dkpro-core-asl/pom.xml b/dkpro-core-asl/pom.xml index bf8798d383..44cb971415 100644 --- a/dkpro-core-asl/pom.xml +++ b/dkpro-core-asl/pom.xml @@ -149,7 +149,6 @@ experimental ../dkpro-core-kuromoji-asl - ../dkpro-core-io-annis-asl ../dkpro-core-io-gate-asl diff --git a/dkpro-core-io-annis-asl/LICENSE.txt b/dkpro-core-io-annis-asl/LICENSE.txt deleted file mode 100644 index d645695673..0000000000 --- a/dkpro-core-io-annis-asl/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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 - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/dkpro-core-io-annis-asl/pom.xml b/dkpro-core-io-annis-asl/pom.xml deleted file mode 100644 index 34549b0584..0000000000 --- a/dkpro-core-io-annis-asl/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - 4.0.0 - - - dkpro-core-asl - org.dkpro.core - 3.0.0-SNAPSHOT - ../dkpro-core-asl - - - dkpro-core-io-annis-asl - jar - DKPro Core ASL - IO - ANNIS2 - https://dkpro.github.io/dkpro-core/ - - - - org.apache.uima - uimaj-core - - - org.apache.uima - uimafit-core - - - commons-io - commons-io - - - org.apache.commons - commons-lang3 - - - org.dkpro.core - dkpro-core-api-metadata-asl - ${project.version} - - - org.dkpro.core - dkpro-core-api-lexmorph-asl - ${project.version} - - - org.dkpro.core - dkpro-core-api-syntax-asl - ${project.version} - - - org.dkpro.core - dkpro-core-api-segmentation-asl - ${project.version} - - - org.dkpro.core - dkpro-core-api-parameter-asl - ${project.version} - - - eu.openminted.share.annotations - omtd-share-annotations-api - - - org.dkpro.core - dkpro-core-io-negra-asl - ${project.version} - test - - - \ No newline at end of file diff --git a/dkpro-core-io-annis-asl/src/main/java/org/dkpro/core/io/annis/RelAnnisWriter.java b/dkpro-core-io-annis-asl/src/main/java/org/dkpro/core/io/annis/RelAnnisWriter.java deleted file mode 100644 index 03e756d453..0000000000 --- a/dkpro-core-io-annis-asl/src/main/java/org/dkpro/core/io/annis/RelAnnisWriter.java +++ /dev/null @@ -1,449 +0,0 @@ -/* - * Copyright 2017 - * Ubiquitous Knowledge Processing (UKP) Lab - * Technische Universität Darmstadt - * - * Licensed 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.dkpro.core.io.annis; - -import static org.apache.uima.fit.util.JCasUtil.select; -import static org.apache.uima.fit.util.JCasUtil.selectCovered; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.OutputStreamWriter; -import java.io.PrintWriter; -import java.io.UnsupportedEncodingException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.apache.commons.io.IOUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.uima.UimaContext; -import org.apache.uima.analysis_engine.AnalysisEngineProcessException; -import org.apache.uima.fit.component.JCasConsumer_ImplBase; -import org.apache.uima.fit.descriptor.ConfigurationParameter; -import org.apache.uima.fit.descriptor.ResourceMetaData; -import org.apache.uima.fit.descriptor.TypeCapability; -import org.apache.uima.jcas.JCas; -import org.apache.uima.jcas.cas.FSArray; -import org.apache.uima.jcas.tcas.Annotation; -import org.apache.uima.resource.ResourceInitializationException; -import org.dkpro.core.api.parameter.ComponentParameters; - -import de.tudarmstadt.ukp.dkpro.core.api.metadata.type.DocumentMetaData; -import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token; -import de.tudarmstadt.ukp.dkpro.core.api.syntax.type.constituent.Constituent; -import de.tudarmstadt.ukp.dkpro.core.api.syntax.type.constituent.ROOT; -import de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Dependency; -import eu.openminted.share.annotations.api.Component; -import eu.openminted.share.annotations.api.DocumentationResource; -import eu.openminted.share.annotations.api.constants.OperationType; - -/** - * This Consumer outputs the content of all CASes into the relAnnis file format. The produced files - * can be fed into Annis2 (http://www.sfb632.uni-potsdam.de/d1/annis/) to visualize the data. e.g. - * constituent and dependency structure. - */ -@Component(OperationType.WRITER) -@ResourceMetaData(name = "RelANNIS Writer") -@DocumentationResource("${docbase}/format-reference.html#format-${command}") -@TypeCapability(inputs = { "de.tudarmstadt.ukp.dkpro.core.api.metadata.type.DocumentMetaData", - "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token", - "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Lemma", - "de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.POS", - "de.tudarmstadt.ukp.dkpro.core.api.syntax.type.dependency.Dependency", - "de.tudarmstadt.ukp.dkpro.core.api.syntax.type.constituent.Constituent" }) -public class RelAnnisWriter - extends JCasConsumer_ImplBase -{ - /** - * Location to which the output is written. - */ - public static final String PARAM_PATH = ComponentParameters.PARAM_TARGET_LOCATION; - @ConfigurationParameter(name = PARAM_PATH, mandatory = true) - private String path; - - /** - * Write part-of-speech information. - */ - public static final String PARAM_WRITE_POS = ComponentParameters.PARAM_WRITE_POS; - @ConfigurationParameter(name = PARAM_WRITE_POS, mandatory = true, defaultValue = "true") - private boolean writePos; - - /** - * Write lemma information. - */ - public static final String PARAM_WRITE_LEMMA = ComponentParameters.PARAM_WRITE_LEMMA; - @ConfigurationParameter(name = PARAM_WRITE_LEMMA, mandatory = true, defaultValue = "true") - private boolean writeLemma; - - /** - * Write constituent structure information. - */ - public static final String PARAM_WRITE_CONSTITUENT = ComponentParameters.PARAM_WRITE_CONSTITUENT; - @ConfigurationParameter(name = PARAM_WRITE_CONSTITUENT, mandatory = true, defaultValue = "true") - private boolean writeConstituents; - - /** - * Write dependency relation information. - */ - public static final String PARAM_WRITE_DEPENDENCY = ComponentParameters.PARAM_WRITE_DEPENDENCY; - @ConfigurationParameter(name = PARAM_WRITE_DEPENDENCY, mandatory = true, defaultValue = "true") - private boolean writeDependencies; - - private int textId; - private int documentId; - private int nodeId; - private int rank; - private int componentId; - private static final String[] FILE_IDS = new String[] { "component", "corpus", - "corpus_annotation", "edge_annotation", "node", "node_annotation", "rank", - "resolver_vis_map", "text" }; - private Map writers; - private Map nodes; - private Map> dependencies; - - @Override - public void initialize(UimaContext context) throws ResourceInitializationException - { - super.initialize(context); - - File f = new File(path); - if (!f.exists()) { - f.mkdirs(); - } - - textId = 0; - documentId = 1; // 0 is CORPUS - nodeId = 0; - rank = 0; - componentId = 0; - writers = new HashMap(); - - // open streams for all files - for (String fileId : FILE_IDS) { - File filePath = new File(path, fileId + ".tab"); - try { - PrintWriter pw = new PrintWriter( - new OutputStreamWriter(new FileOutputStream(filePath), "UTF-8")); - writers.put(fileId, pw); - } - catch (UnsupportedEncodingException e) { - throw new ResourceInitializationException(e); - } - catch (FileNotFoundException e) { - throw new ResourceInitializationException(e); - } - } - } - - @Override - public void process(JCas jcas) throws AnalysisEngineProcessException - { - export(jcas); - if (writeDependencies) { - export_dependencies(jcas); - } - export_text(jcas); - - textId++; - documentId++; - } - - @Override - public void collectionProcessComplete() - { - // write last files - export_corpus(); - export_corpus_annotation(); - export_resolver_vis_map(); - - for (PrintWriter pw : writers.values()) { - IOUtils.closeQuietly(pw); - } - } - - /** - * Write corpus.tab - */ - private void export_corpus() - { - // DocumentMetaData meta = JCasUtil.selectSingle(jcas, - // DocumentMetaData.class); - // TODO use meta.getDocumentId() or meta.getDocumentTitle() as name - // TODO for that, change export_corpus and call it for each jcas - - // write corpus entry - writeToFile("corpus", 0, // id - "c0", // name - "CORPUS", // type (CORPUS|DOCUMENT) - "NULL", // version - "0", // pre-order - documentId * 2 - 1);// post-order - // write document entries - for (int i = 1; i < documentId; i++) { - writeToFile("corpus", i, "d" + i, "DOCUMENT", "NULL", i * 2 - 1, i * 2); - } - } - - /** - * Write corpus_annotation.tab
- * dummy file - */ - private void export_corpus_annotation() - { - // write empty corpus_annotation, because it is not essential - writeToFile("corpus_annotation"); - } - - /** - * Traverse the constituent structure beginning from all roots. Eventually ending at token - * level, so this method must be called, even when not wanting to write the constituent - * structure. - * - * @param jcas - * the CAS. - */ - // id | text-id (text.tab) | corpus-id (corpus.tab) | annotation engine | - // tok_someid | t.begin | t.end | sentence-position | continuous (true if - // span is gap-free) | token-text - private void export(JCas jcas) - { - nodes = new LinkedHashMap(); - for (Constituent root : select(jcas, ROOT.class)) { - traverseConstituents(jcas, root, -1); - } - } - - /** - * Recursively traverse the constituent structure, writing
- * component.tab, edge_annotation.tab, node.tab, node_annotation.tab, rank.tab - * - * @param jcas - * the CAS. - * @param currAnno - * the parent annotation from where to start the traversal - * @param parent_rankPre - * the pre-rank value of the parent - */ - private void traverseConstituents(JCas jcas, Annotation currAnno, int parent_rankPre) - { - Constituent c; - int currNodeId = nodeId; - int rankPre = rank; - - if (currAnno == null) { - return; - } - - nodeId++; - rank++; - - if (currAnno instanceof Token) { - Token t = (Token) currAnno; - - // get the token position; a more efficient method possible? - int pos = selectCovered(jcas, Token.class, 0, t.getBegin()).size(); - - // store node token - writeToFile("node", currNodeId, textId, documentId, "token_merged", "tok_" + currNodeId, - t.getBegin(), t.getEnd(), pos, "true", t.getCoveredText()); - // store node_annotation (token) - if (writePos && (t.getPos() != null)) { - writeToFile("node_annotation", currNodeId, "token_merged", "pos", - t.getPos().getPosValue()); - } - if (writeLemma && (t.getLemma() != null)) { - writeToFile("node_annotation", currNodeId, "token_merged", "lemma", - t.getLemma().getValue()); - } - // store token with corresponding nodeId in hashmap for dependency - // output - nodes.put((Token) currAnno, currNodeId); - // store rank - writeToFile("rank", rankPre, rank, currNodeId, componentId, - (parent_rankPre >= 0 ? parent_rankPre : "NULL")); - // store edge annotation - // TODO proper syntax function annotation; - // use subiterate or iterate to get Tag annotation with same span as - // token? - writeToFile("edge_annotation", rankPre, "tiger", "func", "SF (T)"); - } - else { - if (!(currAnno instanceof Constituent)) { - return; - } - c = (Constituent) currAnno; - - // store node (const) - writeToFile("node", currNodeId, textId, documentId, "tiger", "const_" + currNodeId, - c.getBegin(), c.getEnd(), "NULL", "true", "NULL"); - // store node_annotation (cat) - writeToFile("node_annotation", currNodeId, "tiger", "cat", c.getConstituentType()); - FSArray children = c.getChildren(); - for (int i = 0; i < children.size(); i++) { - traverseConstituents(jcas, c.getChildren(i), rankPre); - } - // store component - writeToFile("component", componentId, "d", "tiger", "edge"); - // store rank - writeToFile("rank", rankPre, rank, currNodeId, componentId, - (parent_rankPre >= 0 ? parent_rankPre : "NULL")); - // store edge_annotation - String synFunc = c.getSyntacticFunction(); - // annis does not render the constituent tree if syntactic functions - // are not at least 1 character wide - if (synFunc == null) { - synFunc = " "; - } - writeToFile("edge_annotation", rankPre, "tiger", "func", synFunc); - componentId++; - } - rank++; - } - - /** - * Traverse the dependency structure beginning from all "roots", i.e. non-governed tokens. - * - * @param jcas - * the CAS. - */ - private void export_dependencies(JCas jcas) - { - dependencies = new LinkedHashMap>(); - List nonGoverned = new ArrayList(nodes.keySet()); - - // fill governor->dependents hashmap - for (Dependency dependency : select(jcas, Dependency.class)) { - Token governor = dependency.getGovernor(); - Token dependent = dependency.getDependent(); - - List l = dependencies.get(governor); - if (l == null) { - dependencies.put(governor, new ArrayList()); - l = dependencies.get(governor); - } - l.add(dependency); - nonGoverned.remove(dependent); - } - - for (Token t : nonGoverned) { - traverseDependents(t, "", -1); - writeToFile("component", componentId, "p", "dep", "dep"); - componentId++; - } - } - - /** - * Recursively traverse the dependency structure, writing to
- * edge_annotation.tab, rank.tab - * - * @param governor - * the annotation whose dependents shall be visited - * @param func - * the function of the dependency pointing to the governor (from its governor) - * @param parent_rankPre - * the pre-rank value of the governor - */ - private void traverseDependents(Token governor, String func, int parent_rankPre) - { - int rankPre = rank; - rank++; - - List dependents = dependencies.get(governor); - if (dependents != null) { - for (Dependency d : dependents) { - traverseDependents(d.getDependent(), d.getDependencyType(), rankPre); - } - } - int node_ref = nodes.get(governor); - - // parent_rankPre == -1 only for manual calls of non-governed tokens - if (parent_rankPre >= 0) { - writeToFile("rank", rankPre, rank, node_ref, componentId, parent_rankPre); - writeToFile("edge_annotation", rankPre, "dep", "func", func); - } - else { - writeToFile("rank", rankPre, rank, node_ref, componentId, "NULL"); - // no edge annotation for "NULL"-parent - } - rank++; - } - - /** - * Write resolver_vis_map.tab
- * corpus name | ??? | namespace (annotation engine) | element (node|edge) | vis_type - * (tree,discourse,grid,...) | display name | layer-order | mappings (optional) - */ - private void export_resolver_vis_map() - { - // constituents - if (writeConstituents) { - writeToFile("resolver_vis_map", "c0", "NULL", "tiger", "node", "tree", - "constituents (tree)", "1", "NULL"); - } - // dependencies - if (writeDependencies) { - writeToFile("resolver_vis_map", "c0", "NULL", "dep", "edge", "arch_dependency", - "dependencies (arches)", "2", "NULL"); - } - } - - /** - * Write text.tab
- * id | some-text-identifier | text - * - * @param jcas - * the CAS. - */ - private void export_text(JCas jcas) - { - StringBuilder text = new StringBuilder(); - String documentId; - for (Token token : select(jcas, Token.class)) { - text.append(token.getCoveredText() + " "); - } - try { - DocumentMetaData d = DocumentMetaData.get(jcas); - documentId = d.getDocumentId(); - } - catch (IllegalArgumentException e) { - documentId = "generic-" + textId; - } - writeToFile("text", textId, documentId, text.toString()); - } - - /** - * Concatenates the elements of input (with tab-separation) and appends the resulting string to - * file fileId.tab. - * - * @param fileId - * the tab-filename to write input to (without ".tab") - * @param input - * the values to write into tab-separated columns - */ - private void writeToFile(String fileId, Object... input) - { - String line = StringUtils.join(input, "\t"); - PrintWriter pw = writers.get(fileId); - if (line.length() > 0) { - pw.println(line); - } - } -} diff --git a/dkpro-core-io-annis-asl/src/main/java/org/dkpro/core/io/annis/package-info.java b/dkpro-core-io-annis-asl/src/main/java/org/dkpro/core/io/annis/package-info.java deleted file mode 100644 index ae3986bbad..0000000000 --- a/dkpro-core-io-annis-asl/src/main/java/org/dkpro/core/io/annis/package-info.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2017 - * Ubiquitous Knowledge Processing (UKP) Lab - * Technische Universität Darmstadt - * - * Licensed 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Support for ANNIS 2 format. - */ -package org.dkpro.core.io.annis; diff --git a/dkpro-core-io-annis-asl/src/test/java/org/dkpro/core/io/annis/RelAnnisWriterTest.java b/dkpro-core-io-annis-asl/src/test/java/org/dkpro/core/io/annis/RelAnnisWriterTest.java deleted file mode 100644 index f65a6d9c67..0000000000 --- a/dkpro-core-io-annis-asl/src/test/java/org/dkpro/core/io/annis/RelAnnisWriterTest.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2017 - * Ubiquitous Knowledge Processing (UKP) Lab - * Technische Universität Darmstadt - * - * Licensed 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.dkpro.core.io.annis; - -import static org.apache.commons.io.FileUtils.contentEqualsIgnoreEOL; -import static org.apache.commons.io.FileUtils.readFileToString; -import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngineDescription; -import static org.apache.uima.fit.factory.CollectionReaderFactory.createReaderDescription; -import static org.junit.jupiter.api.Assertions.assertTrue; - -import java.io.File; - -import org.apache.uima.analysis_engine.AnalysisEngineDescription; -import org.apache.uima.collection.CollectionReaderDescription; -import org.apache.uima.fit.pipeline.SimplePipeline; -import org.dkpro.core.io.negra.NegraExportReader; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.io.TempDir; - -public class RelAnnisWriterTest -{ - @Test - public void tuebaTest(@TempDir File workspace) throws Exception - { - // create NegraExportReader output - CollectionReaderDescription reader = createReaderDescription(NegraExportReader.class, - NegraExportReader.PARAM_SOURCE_LOCATION, - "src/test/resources/tueba/input/tueba-sample.export", - NegraExportReader.PARAM_LANGUAGE, "de", - // NegraExportReader.PARAM_READ_PENN_TREE, false, - NegraExportReader.PARAM_SOURCE_ENCODING, "UTF-8"); - - AnalysisEngineDescription writer = createEngineDescription(RelAnnisWriter.class, - RelAnnisWriter.PARAM_PATH, workspace.getPath()); - - SimplePipeline.runPipeline(reader, writer); - - // Check if the output matches the reference output - for (File f : workspace.listFiles()) { - System.out.print("Checking [" + f.getName() + "]... "); - if (readFileToString(new File("src/test/resources/tueba/reference", f.getName()), - "UTF-8").equals(readFileToString(f, "UTF-8"))) { - System.out.println("ok."); - } - else { - System.out.println("FAIL."); - } - } - - // Check if the output matches the reference output - for (File f : workspace.listFiles()) { - assertTrue(contentEqualsIgnoreEOL( - new File("src/test/resources/tueba/reference", f.getName()), f, "UTF-8")); - } - } -} diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/input/tueba-sample.export b/dkpro-core-io-annis-asl/src/test/resources/tueba/input/tueba-sample.export index d624266ec3..62e25e663f 100644 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/input/tueba-sample.export +++ b/dkpro-core-io-annis-asl/src/test/resources/tueba/input/tueba-sample.export @@ -1,81 +1,81 @@ -%% Release 5 of the Treebank of Written German TBa-D/Z (November 30th 2009) -#FORMAT 3 -#BOT ORIGIN -0 T990507.2 -1 T990507.3 -#EOT ORIGIN -#BOS 34 3 1053681219 0 -Seine PPOSAT asf - 500 -Position NN asf HD 500 -bei APPR d - 508 -der ART dsf - 501 -Prüfgesellschaft NN dsf HD 501 -mußte VMFIN 3sit HD 502 -er PPER nsm3 HD 503 -damals ADV -- HD 504 -niederlegen VVINF -- HD 505 -, $, -- -- 0 -den ART asm - 506 -AWO-Posten NN asm HD 506 -nicht PTKNEG -- HD 507 -. $. -- -- 0 -#500 NX -- HD 514 -#501 NX -- HD 508 -#502 VXFIN -- HD 509 -#503 NX -- ON 510 -#504 ADVX -- V-MOD 510 -#505 VXINF -- OV 511 -#506 NX -- OA 512 -#507 ADVX -- MOD 513 -#508 PX -- - 514 -#509 LK -- - 517 -#510 MF -- - 517 -#511 VC -- - 517 -#512 VF -- - 515 -#513 MF -- - 515 -#514 NX -- OA 516 -#515 SIMPX -- KONJ 518 -#516 VF -- - 517 -#517 SIMPX -- KONJ 518 -#518 SIMPX -- -- 0 -#EOS 34 -#BOS 35 19 1119611074 0 -K. NE ns* - 500 -W. NE ns* - 500 -#500 NX -- - 501 -#501 EN-ADD -- -- 0 -#EOS 35 -#BOS 36 3 1058439441 1 %% HEADLINE -SPD NE nsf HD 500 -/ $( -- -- 0 -CDU NE nsf HD 501 -/ $( -- -- 0 -AfB NE nsf HD 502 -für APPR a - 505 -Daewoo-Millionen NN apf HD 503 -#500 NX -- KONJ 504 -#501 NX -- KONJ 504 -#502 NX -- KONJ 504 -#503 NX -- HD 505 -#504 NX -- HD 506 -#505 PX -- - 506 -#506 NX -- -- 0 -#EOS 36 -#BOS 37 19 1049288305 1 %% HEADLINE -Aber KON -- - 500 -Bremerhavens NE gsn HD 501 -AfB NE nsf HD 505 -fordert VVFIN 3sis HD 502 -jetzt ADV -- HD 503 -Untersuchungsausschuß NN asm HD 504 -#500 KOORD -- - 509 -#501 NX -- - 505 -#502 VXFIN -- HD 506 -#503 ADVX -- V-MOD 507 -#504 NX -- OA 507 -#505 NX -- ON 508 -#506 LK -- - 509 -#507 MF -- - 509 -#508 VF -- - 509 -#509 SIMPX -- -- 0 -#EOS 37 +%% Release 5 of the Treebank of Written German TBa-D/Z (November 30th 2009) +#FORMAT 3 +#BOT ORIGIN +0 T990507.2 +1 T990507.3 +#EOT ORIGIN +#BOS 34 3 1053681219 0 +Seine PPOSAT asf - 500 +Position NN asf HD 500 +bei APPR d - 508 +der ART dsf - 501 +Prüfgesellschaft NN dsf HD 501 +mußte VMFIN 3sit HD 502 +er PPER nsm3 HD 503 +damals ADV -- HD 504 +niederlegen VVINF -- HD 505 +, $, -- -- 0 +den ART asm - 506 +AWO-Posten NN asm HD 506 +nicht PTKNEG -- HD 507 +. $. -- -- 0 +#500 NX -- HD 514 +#501 NX -- HD 508 +#502 VXFIN -- HD 509 +#503 NX -- ON 510 +#504 ADVX -- V-MOD 510 +#505 VXINF -- OV 511 +#506 NX -- OA 512 +#507 ADVX -- MOD 513 +#508 PX -- - 514 +#509 LK -- - 517 +#510 MF -- - 517 +#511 VC -- - 517 +#512 VF -- - 515 +#513 MF -- - 515 +#514 NX -- OA 516 +#515 SIMPX -- KONJ 518 +#516 VF -- - 517 +#517 SIMPX -- KONJ 518 +#518 SIMPX -- -- 0 +#EOS 34 +#BOS 35 19 1119611074 0 +K. NE ns* - 500 +W. NE ns* - 500 +#500 NX -- - 501 +#501 EN-ADD -- -- 0 +#EOS 35 +#BOS 36 3 1058439441 1 %% HEADLINE +SPD NE nsf HD 500 +/ $( -- -- 0 +CDU NE nsf HD 501 +/ $( -- -- 0 +AfB NE nsf HD 502 +für APPR a - 505 +Daewoo-Millionen NN apf HD 503 +#500 NX -- KONJ 504 +#501 NX -- KONJ 504 +#502 NX -- KONJ 504 +#503 NX -- HD 505 +#504 NX -- HD 506 +#505 PX -- - 506 +#506 NX -- -- 0 +#EOS 36 +#BOS 37 19 1049288305 1 %% HEADLINE +Aber KON -- - 500 +Bremerhavens NE gsn HD 501 +AfB NE nsf HD 505 +fordert VVFIN 3sis HD 502 +jetzt ADV -- HD 503 +Untersuchungsausschuß NN asm HD 504 +#500 KOORD -- - 509 +#501 NX -- - 505 +#502 VXFIN -- HD 506 +#503 ADVX -- V-MOD 507 +#504 NX -- OA 507 +#505 NX -- ON 508 +#506 LK -- - 509 +#507 MF -- - 509 +#508 VF -- - 509 +#509 SIMPX -- -- 0 +#EOS 37 diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/component.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/component.tab deleted file mode 100644 index 96236a4e29..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/component.tab +++ /dev/null @@ -1,71 +0,0 @@ -0 d tiger edge -1 d tiger edge -2 d tiger edge -3 d tiger edge -4 d tiger edge -5 d tiger edge -6 d tiger edge -7 d tiger edge -8 d tiger edge -9 d tiger edge -10 d tiger edge -11 d tiger edge -12 d tiger edge -13 d tiger edge -14 d tiger edge -15 d tiger edge -16 d tiger edge -17 d tiger edge -18 d tiger edge -19 d tiger edge -20 d tiger edge -21 d tiger edge -22 d tiger edge -23 p dep dep -24 p dep dep -25 p dep dep -26 p dep dep -27 p dep dep -28 p dep dep -29 p dep dep -30 p dep dep -31 p dep dep -32 p dep dep -33 p dep dep -34 p dep dep -35 p dep dep -36 p dep dep -37 p dep dep -38 p dep dep -39 d tiger edge -40 d tiger edge -41 d tiger edge -42 d tiger edge -43 d tiger edge -44 d tiger edge -45 d tiger edge -46 d tiger edge -47 d tiger edge -48 d tiger edge -49 d tiger edge -50 d tiger edge -51 d tiger edge -52 d tiger edge -53 d tiger edge -54 d tiger edge -55 d tiger edge -56 d tiger edge -57 d tiger edge -58 p dep dep -59 p dep dep -60 p dep dep -61 p dep dep -62 p dep dep -63 p dep dep -64 p dep dep -65 p dep dep -66 p dep dep -67 p dep dep -68 p dep dep -69 p dep dep -70 p dep dep diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/corpus.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/corpus.tab deleted file mode 100644 index 8a48b45162..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/corpus.tab +++ /dev/null @@ -1,3 +0,0 @@ -0 c0 CORPUS NULL 0 5 -1 d1 DOCUMENT NULL 1 2 -2 d2 DOCUMENT NULL 3 4 diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/corpus_annotation.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/corpus_annotation.tab deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/edge_annotation.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/edge_annotation.tab deleted file mode 100644 index 95c82d59c2..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/edge_annotation.tab +++ /dev/null @@ -1,71 +0,0 @@ -1 tiger func SF (T) -3 tiger func SF (T) -9 tiger func SF (T) -11 tiger func SF (T) -8 tiger func OA -7 tiger func - -17 tiger func SF (T) -16 tiger func MOD -15 tiger func - -6 tiger func KONJ -25 tiger func SF (T) -24 tiger func HD -23 tiger func - -31 tiger func SF (T) -30 tiger func ON -35 tiger func SF (T) -34 tiger func V-MOD -29 tiger func - -41 tiger func SF (T) -40 tiger func OV -39 tiger func - -48 tiger func SF (T) -50 tiger func SF (T) -47 tiger func HD -54 tiger func SF (T) -57 tiger func SF (T) -59 tiger func SF (T) -56 tiger func HD -53 tiger func - -46 tiger func OA -45 tiger func - -22 tiger func KONJ -5 tiger func -- -0 tiger func -71 tiger func SF (T) -73 tiger func SF (T) -70 tiger func - -69 tiger func -- -68 tiger func -111 tiger func SF (T) -113 tiger func SF (T) -118 tiger func SF (T) -117 tiger func KONJ -122 tiger func SF (T) -121 tiger func KONJ -126 tiger func SF (T) -125 tiger func KONJ -116 tiger func HD -131 tiger func SF (T) -134 tiger func SF (T) -133 tiger func HD -130 tiger func - -115 tiger func -- -110 tiger func -143 tiger func SF (T) -142 tiger func - -148 tiger func SF (T) -147 tiger func HD -146 tiger func - -154 tiger func SF (T) -153 tiger func V-MOD -158 tiger func SF (T) -157 tiger func OA -152 tiger func - -164 tiger func SF (T) -167 tiger func SF (T) -166 tiger func - -163 tiger func ON -162 tiger func - -141 tiger func -- -140 tiger func diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/node.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/node.tab deleted file mode 100644 index a128f60688..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/node.tab +++ /dev/null @@ -1,71 +0,0 @@ -0 0 1 tiger const_0 0 92 NULL true NULL -1 0 1 token_merged tok_1 68 69 9 true , -2 0 1 token_merged tok_2 91 92 13 true . -3 0 1 tiger const_3 0 90 NULL true NULL -4 0 1 tiger const_4 70 90 NULL true NULL -5 0 1 tiger const_5 70 84 NULL true NULL -6 0 1 tiger const_6 70 84 NULL true NULL -7 0 1 token_merged tok_7 70 73 10 true den -8 0 1 token_merged tok_8 74 84 11 true AWO-Posten -9 0 1 tiger const_9 85 90 NULL true NULL -10 0 1 tiger const_10 85 90 NULL true NULL -11 0 1 token_merged tok_11 85 90 12 true nicht -12 0 1 tiger const_12 0 67 NULL true NULL -13 0 1 tiger const_13 40 45 NULL true NULL -14 0 1 tiger const_14 40 45 NULL true NULL -15 0 1 token_merged tok_15 40 45 5 true mußte -16 0 1 tiger const_16 46 55 NULL true NULL -17 0 1 tiger const_17 46 48 NULL true NULL -18 0 1 token_merged tok_18 46 48 6 true er -19 0 1 tiger const_19 49 55 NULL true NULL -20 0 1 token_merged tok_20 49 55 7 true damals -21 0 1 tiger const_21 56 67 NULL true NULL -22 0 1 tiger const_22 56 67 NULL true NULL -23 0 1 token_merged tok_23 56 67 8 true niederlegen -24 0 1 tiger const_24 0 39 NULL true NULL -25 0 1 tiger const_25 0 39 NULL true NULL -26 0 1 tiger const_26 0 14 NULL true NULL -27 0 1 token_merged tok_27 0 5 0 true Seine -28 0 1 token_merged tok_28 6 14 1 true Position -29 0 1 tiger const_29 15 39 NULL true NULL -30 0 1 token_merged tok_30 15 18 2 true bei -31 0 1 tiger const_31 19 39 NULL true NULL -32 0 1 token_merged tok_32 19 22 3 true der -33 0 1 token_merged tok_33 23 39 4 true Prüfgesellschaft -34 0 1 tiger const_34 93 98 NULL true NULL -35 0 1 tiger const_35 93 98 NULL true NULL -36 0 1 tiger const_36 93 98 NULL true NULL -37 0 1 token_merged tok_37 93 95 14 true K. -38 0 1 token_merged tok_38 96 98 15 true W. -39 1 2 tiger const_39 0 36 NULL true NULL -40 1 2 token_merged tok_40 4 5 1 true / -41 1 2 token_merged tok_41 10 11 3 true / -42 1 2 tiger const_42 0 36 NULL true NULL -43 1 2 tiger const_43 0 15 NULL true NULL -44 1 2 tiger const_44 0 3 NULL true NULL -45 1 2 token_merged tok_45 0 3 0 true SPD -46 1 2 tiger const_46 6 9 NULL true NULL -47 1 2 token_merged tok_47 6 9 2 true CDU -48 1 2 tiger const_48 12 15 NULL true NULL -49 1 2 token_merged tok_49 12 15 4 true AfB -50 1 2 tiger const_50 16 36 NULL true NULL -51 1 2 token_merged tok_51 16 19 5 true für -52 1 2 tiger const_52 20 36 NULL true NULL -53 1 2 token_merged tok_53 20 36 6 true Daewoo-Millionen -54 1 2 tiger const_54 37 94 NULL true NULL -55 1 2 tiger const_55 37 94 NULL true NULL -56 1 2 tiger const_56 37 41 NULL true NULL -57 1 2 token_merged tok_57 37 41 7 true Aber -58 1 2 tiger const_58 59 66 NULL true NULL -59 1 2 tiger const_59 59 66 NULL true NULL -60 1 2 token_merged tok_60 59 66 10 true fordert -61 1 2 tiger const_61 67 94 NULL true NULL -62 1 2 tiger const_62 67 72 NULL true NULL -63 1 2 token_merged tok_63 67 72 11 true jetzt -64 1 2 tiger const_64 73 94 NULL true NULL -65 1 2 token_merged tok_65 73 94 12 true Untersuchungsausschuß -66 1 2 tiger const_66 42 58 NULL true NULL -67 1 2 tiger const_67 42 58 NULL true NULL -68 1 2 token_merged tok_68 55 58 9 true AfB -69 1 2 tiger const_69 42 54 NULL true NULL -70 1 2 token_merged tok_70 42 54 8 true Bremerhavens diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/node_annotation.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/node_annotation.tab deleted file mode 100644 index aafd68e8f0..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/node_annotation.tab +++ /dev/null @@ -1,71 +0,0 @@ -0 tiger cat ROOT -1 token_merged pos $, -2 token_merged pos $. -3 tiger cat SIMPX -4 tiger cat SIMPX -5 tiger cat VF -6 tiger cat NX -7 token_merged pos ART -8 token_merged pos NN -9 tiger cat MF -10 tiger cat ADVX -11 token_merged pos PTKNEG -12 tiger cat SIMPX -13 tiger cat LK -14 tiger cat VXFIN -15 token_merged pos VMFIN -16 tiger cat MF -17 tiger cat NX -18 token_merged pos PPER -19 tiger cat ADVX -20 token_merged pos ADV -21 tiger cat VC -22 tiger cat VXINF -23 token_merged pos VVINF -24 tiger cat VF -25 tiger cat NX -26 tiger cat NX -27 token_merged pos PPOSAT -28 token_merged pos NN -29 tiger cat PX -30 token_merged pos APPR -31 tiger cat NX -32 token_merged pos ART -33 token_merged pos NN -34 tiger cat ROOT -35 tiger cat EN-ADD -36 tiger cat NX -37 token_merged pos NE -38 token_merged pos NE -39 tiger cat ROOT -40 token_merged pos $( -41 token_merged pos $( -42 tiger cat NX -43 tiger cat NX -44 tiger cat NX -45 token_merged pos NE -46 tiger cat NX -47 token_merged pos NE -48 tiger cat NX -49 token_merged pos NE -50 tiger cat PX -51 token_merged pos APPR -52 tiger cat NX -53 token_merged pos NN -54 tiger cat ROOT -55 tiger cat SIMPX -56 tiger cat KOORD -57 token_merged pos KON -58 tiger cat LK -59 tiger cat VXFIN -60 token_merged pos VVFIN -61 tiger cat MF -62 tiger cat ADVX -63 token_merged pos ADV -64 tiger cat NX -65 token_merged pos NN -66 tiger cat VF -67 tiger cat NX -68 token_merged pos NE -69 tiger cat NX -70 token_merged pos NE diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/rank.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/rank.tab deleted file mode 100644 index bcba9f0dc1..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/rank.tab +++ /dev/null @@ -1,100 +0,0 @@ -1 2 1 0 0 -3 4 2 0 0 -9 10 7 0 8 -11 12 8 0 8 -8 13 6 0 7 -7 14 5 1 6 -17 18 11 2 16 -16 19 10 2 15 -15 20 9 3 6 -6 21 4 4 5 -25 26 15 5 24 -24 27 14 5 23 -23 28 13 6 22 -31 32 18 7 30 -30 33 17 7 29 -35 36 20 8 34 -34 37 19 8 29 -29 38 16 9 22 -41 42 23 10 40 -40 43 22 10 39 -39 44 21 11 22 -48 49 27 12 47 -50 51 28 12 47 -47 52 26 12 46 -54 55 30 13 53 -57 58 32 13 56 -59 60 33 13 56 -56 61 31 13 53 -53 62 29 14 46 -46 63 25 15 45 -45 64 24 16 22 -22 65 12 17 5 -5 66 3 18 0 -0 67 0 19 NULL -71 72 37 20 70 -73 74 38 20 70 -70 75 36 20 69 -69 76 35 21 68 -68 77 34 22 NULL -78 79 1 23 NULL -80 81 2 24 NULL -82 83 7 25 NULL -84 85 8 26 NULL -86 87 11 27 NULL -88 89 15 28 NULL -90 91 18 29 NULL -92 93 20 30 NULL -94 95 23 31 NULL -96 97 27 32 NULL -98 99 28 33 NULL -100 101 30 34 NULL -102 103 32 35 NULL -104 105 33 36 NULL -106 107 37 37 NULL -108 109 38 38 NULL -111 112 40 39 110 -113 114 41 39 110 -118 119 45 39 117 -117 120 44 39 116 -122 123 47 40 121 -121 124 46 40 116 -126 127 49 41 125 -125 128 48 41 116 -116 129 43 42 115 -131 132 51 43 130 -134 135 53 43 133 -133 136 52 43 130 -130 137 50 44 115 -115 138 42 45 110 -110 139 39 46 NULL -143 144 57 47 142 -142 145 56 47 141 -148 149 60 48 147 -147 150 59 48 146 -146 151 58 49 141 -154 155 63 50 153 -153 156 62 50 152 -158 159 65 51 157 -157 160 64 51 152 -152 161 61 52 141 -164 165 68 53 163 -167 168 70 53 166 -166 169 69 53 163 -163 170 67 54 162 -162 171 66 55 141 -141 172 55 56 140 -140 173 54 57 NULL -174 175 40 58 NULL -176 177 41 59 NULL -178 179 45 60 NULL -180 181 47 61 NULL -182 183 49 62 NULL -184 185 51 63 NULL -186 187 53 64 NULL -188 189 57 65 NULL -190 191 60 66 NULL -192 193 63 67 NULL -194 195 65 68 NULL -196 197 68 69 NULL -198 199 70 70 NULL diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/resolver_vis_map.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/resolver_vis_map.tab deleted file mode 100644 index e30ab034a0..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/resolver_vis_map.tab +++ /dev/null @@ -1,2 +0,0 @@ -c0 NULL tiger node tree constituents (tree) 1 NULL -c0 NULL dep edge arch_dependency dependencies (arches) 2 NULL diff --git a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/text.tab b/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/text.tab deleted file mode 100644 index f8a065bb7b..0000000000 --- a/dkpro-core-io-annis-asl/src/test/resources/tueba/reference/text.tab +++ /dev/null @@ -1,2 +0,0 @@ -0 T990507.2 Seine Position bei der Prüfgesellschaft mußte er damals niederlegen , den AWO-Posten nicht . K. W. -1 T990507.3 SPD / CDU / AfB für Daewoo-Millionen Aber Bremerhavens AfB fordert jetzt Untersuchungsausschuß