Search in sources :

Example 1 with AnnisResultImpl

use of annis.service.objects.AnnisResultImpl in project ANNIS by korpling.

the class LegacyGraphConverter method convertToResultSet.

public static AnnisResultSet convertToResultSet(SaltProject p) {
    List<AnnotationGraph> annotationGraphs = convertToAOM(p);
    AnnisResultSetImpl annisResultSet = new AnnisResultSetImpl();
    for (AnnotationGraph annotationGraph : annotationGraphs) {
        annisResultSet.add(new AnnisResultImpl(annotationGraph));
    }
    return annisResultSet;
}
Also used : AnnotationGraph(annis.model.AnnotationGraph) AnnisResultSetImpl(annis.service.objects.AnnisResultSetImpl) AnnisResultImpl(annis.service.objects.AnnisResultImpl)

Aggregations

AnnotationGraph (annis.model.AnnotationGraph)1 AnnisResultImpl (annis.service.objects.AnnisResultImpl)1 AnnisResultSetImpl (annis.service.objects.AnnisResultSetImpl)1