trait Slab[ContentType, RegionType, +AnnotationTypes] extends AnyRef
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.
- Alphabetic
- By Inheritance
- Slab
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def addLayer[A](annotations: TraversableOnce[(RegionType, A)])(implicit arg0: ClassTag[A]): Slab[ContentType, RegionType, AnnotationTypes with A]
- abstract val content: ContentType
-
abstract
def
covered[A >: AnnotationTypes](region: RegionType)(implicit arg0: ClassTag[A]): IndexedSeq[(RegionType, A)]
Returns annotations wholly contained in the region
- abstract def following[A >: AnnotationTypes](region: RegionType)(implicit arg0: ClassTag[A]): Iterator[(RegionType, A)]
-
abstract
def
hasLayer[A](implicit arg0: ClassTag[A]): Boolean
Queries whether we have annotations of this type, even if the slab doesn't have this type.
Queries whether we have annotations of this type, even if the slab doesn't have this type. Sometimes you just have to cast...
- abstract def indexedSeq[A >: AnnotationTypes](implicit arg0: ClassTag[A]): IndexedSeq[(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)]
Returns annotations that are entirely before the region
-
abstract
def
removeLayer[A >: AnnotationTypes](implicit arg0: ClassTag[A]): Slab[ContentType, RegionType, AnnotationTypes]
Can't remove the type, but you can upcast
- abstract def spanned(region: RegionType): ContentType
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +[A](pair: (RegionType, A))(implicit arg0: ClassTag[A]): Slab[ContentType, RegionType, AnnotationTypes with A]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addLayer[A](annotations: (RegionType, A)*)(implicit arg0: ClassTag[A]): Slab[ContentType, RegionType, AnnotationTypes with A]
- def append[A](region: RegionType, annotation: A)(implicit arg0: ClassTag[A]): Slab[ContentType, RegionType, AnnotationTypes with A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkedCast[A](implicit arg0: ClassTag[A]): Option[Slab[ContentType, RegionType, AnnotationTypes with A]]
useful for downcasting
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def stringRep[A >: AnnotationTypes](implicit arg0: ClassTag[A]): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )