case class Sentence(docId: String, index: Int, words: IndexedSeq[String], annotations: OntoAnnotations) extends Example[OntoAnnotations, IndexedSeq[String]] with Product with Serializable
represents an annotation ontonotes sentence. Doesn't include raw sentence, for now.
- Annotations
- @SerialVersionUID()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Sentence
- Product
- Equals
- Example
- Labeled
- Observation
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Sentence(docId: String, index: Int, words: IndexedSeq[String], annotations: OntoAnnotations)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def annotate(tree: Tree[AnnotatedLabel] = tree, ner: Map[DSpan, NerType.Value] = ner, coref: Map[DSpan, Mention] = coref, srl: IndexedSeq[Frame] = srl, speaker: Option[String] = speaker): Sentence
- val annotations: OntoAnnotations
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def coref: Map[DSpan, Mention]
- val docId: String
- def dspans: IndexedSeq[DSpan]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
features: IndexedSeq[String]
- Definition Classes
- Sentence → Observation
-
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
id: String
- Definition Classes
- Sentence → Example → Observation
- val index: Int
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def label: OntoAnnotations
- def length: Int
-
def
map[U](f: (IndexedSeq[String]) ⇒ U): Example[OntoAnnotations, U]
Converts the features in this example to a different one while still preserving label and id.
Converts the features in this example to a different one while still preserving label and id.
- Definition Classes
- Example → Observation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def ner: Map[DSpan, NerType.Value]
- lazy val nerSegmentation: Segmentation[NerType.Value, String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
relabel[L2](f: (OntoAnnotations) ⇒ L2): Example[L2, IndexedSeq[String]]
Converts the label in this example to a different one while still preserving features and id.
Converts the label in this example to a different one while still preserving features and id.
- Definition Classes
- Example
- def speaker: Option[String]
- def srl: IndexedSeq[Frame]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Example → Observation → AnyRef → Any
- def tree: Tree[AnnotatedLabel]
- def treeInstance(processor: StandardTreeProcessor): TreeInstance[AnnotatedLabel, String]
-
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( ... )
- val words: IndexedSeq[String]