trait HasBatchedAnnotateImage[M <: Model[M]] extends AnyRef
Ordering
- Grouped
- Alphabetic
- By Inheritance
Inherited
- HasBatchedAnnotateImage
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
getParam
-
def
getBatchSize: Int
Size of every batch.
param
-
val
batchSize: IntParam
Size of every batch (Default depends on model).
setParam
-
def
setBatchSize(size: Int): HasBatchedAnnotateImage.this
Size of every batch.
Ungrouped
-
abstract
def
batchAnnotate(batchedAnnotations: Seq[Array[AnnotationImage]]): Seq[Seq[Annotation]]
takes a document and annotations and produces new annotations of this annotator's annotation type
takes a document and annotations and produces new annotations of this annotator's annotation type
- batchedAnnotations
Annotations in batches that correspond to inputAnnotationCols generated by previous annotators if any
- returns
any number of annotations processed for every batch of input annotations. Not necessary one to one relationship
- def batchProcess(rows: Iterator[_]): Iterator[Row]