This project provides an im- and an exporter to support the Penn Treebank Format (PTB) for the linguistic converter framework Pepper (see https://u.hu-berlin.de/saltnpepper).
The token order in the exported file does not correspond with the token order in the imported file (in this case: Exmaralda, an error in the EXMARaLDAImporter can be excluded, since the token order is correct in the result of the ANNISExporter).
This turned out not to be an issue of PTBExporter, but Hierarchizer in ModuleBox who lost token order when building the overarching SStructure objects.
The token order in the exported file does not correspond with the token order in the imported file (in this case: Exmaralda, an error in the EXMARaLDAImporter can be excluded, since the token order is correct in the result of the ANNISExporter).
The workflow:
Input and results attached. data.zip