trait
Slab[ContentType, RegionType, +AnnotationTypes] extends AnyRef
Abstract Value Members
-
abstract
def
++[A](annotations: TraversableOnce[(RegionType, A)]): Slab[ContentType, RegionType, AnnotationTypes with A]
-
abstract
val
content: ContentType
-
abstract
def
covered[A >: AnnotationTypes](region: RegionType)(implicit arg0: ClassTag[A]): Iterator[(RegionType, A)]
-
abstract
def
following[A >: AnnotationTypes](region: RegionType)(implicit arg0: ClassTag[A]): Iterator[(RegionType, A)]
-
abstract
def
iterator[A >: AnnotationTypes](implicit arg0: ClassTag[A]): Iterator[(RegionType, A)]
-
abstract
def
preceding[A >: AnnotationTypes](region: RegionType)(implicit arg0: ClassTag[A]): Iterator[(RegionType, A)]
-
abstract
def
spanned(region: RegionType): ContentType
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+[A](pair: (RegionType, A)): Slab[ContentType, RegionType, AnnotationTypes with A]
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
append[A](region: RegionType, annotation: A): Slab[ContentType, RegionType, AnnotationTypes with A]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
stringRep[A >: AnnotationTypes](implicit arg0: ClassTag[A]): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
A Slab is the core "document" type in Epic. It represents a document and a set of annotations on that document, such as sentence boundaries, tokens, named entity spans, etc. The ContentType is the type of the document--typically a string--and the AnnotationTypes parameter is an encoding of the kinds of annotations that are present. epic.slab.AnalysisFunctions can be used to add new annotations to a Slab that have the prerequisite annotations.