Package io.goobi.viewer.model.annotation
Class AltoAnnotationBuilder
java.lang.Object
io.goobi.viewer.model.annotation.AltoAnnotationBuilder
Creates an
AnnotationList
of TextualResource
s 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionde.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.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
- aPage
object.pi
-pageNo
-target
-granularity
- aAltoAnnotationBuilder.Granularity
object.urlOnlyTarget
- a boolean.- Returns:
- a
List
object.
-
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
- aGeometricData
object.pi
-pageNo
-canvas
- aIResource
object.urlOnlyTarget
- a boolean.- Returns:
- a
IAnnotation
object.
-