@@ -0,0 +1,1711 @@
+package de.unistuttgart.ims.drama.core.ml.spred;%0A%0Aimport org.apache.uima.analysis_engine.AnalysisEngineDescription;%0Aimport org.apache.uima.fit.factory.AggregateBuilder;%0Aimport org.apache.uima.fit.factory.AnalysisEngineFactory;%0Aimport org.apache.uima.resource.ResourceInitializationException;%0A%0Aimport de.unistuttgart.ims.drama.api.Speaker;%0Aimport de.unistuttgart.ims.drama.api.Speech;%0Aimport de.unistuttgart.ims.drama.api.StageDirection;%0Aimport de.unistuttgart.ims.drama.core.ml.api.TextLayer;%0Aimport de.unistuttgart.ims.uimautil.MapAnnotations;%0A%0Apublic class ConvertToTextLayer %7B%0A%0A%09public static AnalysisEngineDescription getDescription() throws ResourceInitializationException %7B%0A%09%09AggregateBuilder b = new AggregateBuilder();%0A%09%09Class%3C?%3E clazz = Speech.class;%0A%09%09b.add(AnalysisEngineFactory.createEngineDescription(MapAnnotations.class, MapAnnotations.PARAM_SOURCE_CLASS,%0A%09%09%09%09clazz, MapAnnotations.PARAM_TARGET_CLASS, TextLayer.class, MapAnnotations.PARAM_FEATURE_NAME, %22Name%22,%0A%09%09%09%09MapAnnotations.PARAM_FEATURE_VALUE, clazz.getSimpleName()));%0A%09%09clazz = Speaker.class;%0A%09%09b.add(AnalysisEngineFactory.createEngineDescription(MapAnnotations.class, MapAnnotations.PARAM_SOURCE_CLASS,%0A%09%09%09%09clazz, MapAnnotations.PARAM_TARGET_CLASS, TextLayer.class, MapAnnotations.PARAM_FEATURE_NAME, %22Name%22,%0A%09%09%09%09MapAnnotations.PARAM_FEATURE_VALUE, clazz.getSimpleName()));%0A%09%09clazz = StageDirection.class;%0A%09%09b.add(AnalysisEngineFactory.createEngineDescription(MapAnnotations.class, MapAnnotations.PARAM_SOURCE_CLASS,%0A%09%09%09%09clazz, MapAnnotations.PARAM_TARGET_CLASS, TextLayer.class, MapAnnotations.PARAM_FEATURE_NAME, %22Name%22,%0A%09%09%09%09MapAnnotations.PARAM_FEATURE_VALUE, clazz.getSimpleName()));%0A%09%09return b.createAggregateDescription();%0A%0A%09%7D%0A%0A%7D%0A

Convert code #26