Package io.goobi.viewer.model.annotation
Class AltoAnnotationBuilder
java.lang.Object
io.goobi.viewer.model.annotation.AltoAnnotationBuilder
Creates an
AnnotationList of TextualResources from the content of an ALTO document.
Depending on selected granularity, it is either one annotation per page, per TextBlock, per line or per word- Author:
- Florian
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.intranda.api.annotation.AbstractAnnotationcreateAnnotation(de.intranda.digiverso.ocr.alto.model.superclasses.GeometricData element, String pi, Integer pageNo, de.intranda.api.annotation.IResource canvas, boolean urlOnlyTarget) createAnnotation.List<de.intranda.api.annotation.AbstractAnnotation> createAnnotations(de.intranda.digiverso.ocr.alto.model.structureclasses.Page alto, String pi, Integer pageNo, de.intranda.api.annotation.IResource target, AltoAnnotationBuilder.Granularity granularity, boolean urlOnlyTarget) createAnnotations.List<de.intranda.api.annotation.AbstractAnnotation> createAnnotations(List<de.intranda.digiverso.ocr.alto.model.superclasses.GeometricData> elements, String pi, Integer pageNo, de.intranda.api.annotation.IResource target, boolean urlOnlyTarget) createAnnotations.
-
Constructor Details
-
AltoAnnotationBuilder
- Parameters:
urls-format-
-
-
Method Details
-
createAnnotations
public List<de.intranda.api.annotation.AbstractAnnotation> createAnnotations(de.intranda.digiverso.ocr.alto.model.structureclasses.Page alto, String pi, Integer pageNo, de.intranda.api.annotation.IResource target, AltoAnnotationBuilder.Granularity granularity, boolean urlOnlyTarget) createAnnotations.
- Parameters:
alto- aPageobject.pi-pageNo-target-granularity- aAltoAnnotationBuilder.Granularityobject.urlOnlyTarget- a boolean.- Returns:
- a
Listobject.
-
createAnnotations
public List<de.intranda.api.annotation.AbstractAnnotation> createAnnotations(List<de.intranda.digiverso.ocr.alto.model.superclasses.GeometricData> elements, String pi, Integer pageNo, de.intranda.api.annotation.IResource target, boolean urlOnlyTarget) createAnnotations.
-
createAnnotation
public de.intranda.api.annotation.AbstractAnnotation createAnnotation(de.intranda.digiverso.ocr.alto.model.superclasses.GeometricData element, String pi, Integer pageNo, de.intranda.api.annotation.IResource canvas, boolean urlOnlyTarget) createAnnotation.
- Parameters:
element- aGeometricDataobject.pi-pageNo-canvas- aIResourceobject.urlOnlyTarget- a boolean.- Returns:
- a
IAnnotationobject.
-