Packages

t

com.johnsnowlabs.nlp

HasBatchedAnnotateImage

trait HasBatchedAnnotateImage[M <: Model[M]] extends AnyRef

Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. HasBatchedAnnotateImage
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

getParam

  1. def getBatchSize: Int

    Size of every batch.

param

  1. val batchSize: IntParam

    Size of every batch (Default depends on model).

setParam

  1. def setBatchSize(size: Int): HasBatchedAnnotateImage.this

    Size of every batch.

Ungrouped

  1. 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

  2. def batchProcess(rows: Iterator[_]): Iterator[Row]