Closed amir-zeldes closed 7 years ago
When I got it right, the loading of treetagger data should be able to import more than just two columns. The function addDataRow(String) contains the following:
else { anno = TreetaggerFactory.eINSTANCE.createAnyAnnotation(); anno.setName(columnName); token.getAnnotations().add(anno); }
which looks like as if it also reads further columns. The function is called in load(Map) contained in class TabResources or in TabReader in #7. I haven't checked whether it is working or not. But maybe this is a good point to start from for debugging.
solved with #7
The TT Importer seems to be ignoring columns after the 3rd in the input, although the exporter supports the 'anyAnnotation' option. This seems to be caused by the handling of maximum columns in the EMF api and not in the module itself:
https://github.com/korpling/treetagger-emf-api/blob/master/src/main/java/de/hu_berlin/german/korpling/saltnpepper/misc/treetagger/resources/TabResource.java
Is there any reason for this? The user should be allowed to import and specify names for an arbitrary amount of columns.