public class CoreQuote
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
hasCanonicalSpeaker |
boolean |
hasSpeaker |
Constructor and Description |
---|
CoreQuote(CoreDocument myDocument,
CoreMap coreMapQuote) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
canonicalSpeaker()
retrieve the text of the canonical speaker
|
java.util.Optional<Pair<java.lang.Integer,java.lang.Integer>> |
canonicalSpeakerCharOffsets()
retrieve the character offsets of the canonical speaker
|
java.util.Optional<CoreEntityMention> |
canonicalSpeakerEntityMention()
retrieve the entity mention corresponding to the canonical speaker if there is one
|
java.util.Optional<java.util.List<CoreLabel>> |
canonicalSpeakerTokens()
retrieve the tokens of the canonical speaker
|
CoreMap |
coreMap()
get the underlying CoreMap if need be
|
CoreDocument |
document()
get this quote's document
|
Pair<java.lang.Integer,java.lang.Integer> |
quoteCharOffsets()
char offsets of quote
|
java.util.List<CoreSentence> |
sentences()
retrieve the CoreSentence's attached to this quote
|
java.util.Optional<java.lang.String> |
speaker()
retrieve the text of the speaker
|
java.util.Optional<Pair<java.lang.Integer,java.lang.Integer>> |
speakerCharOffsets()
retrieve the character offsets of the speaker
|
java.util.Optional<CoreEntityMention> |
speakerEntityMention()
retrieve the entity mention corresponding to the speaker if there is one
|
java.util.Optional<java.util.List<CoreLabel>> |
speakerTokens()
retrieve the tokens of the speaker
|
java.lang.String |
text()
full text of the mention
|
java.lang.String |
toString() |
public boolean hasSpeaker
public boolean hasCanonicalSpeaker
public CoreQuote(CoreDocument myDocument, CoreMap coreMapQuote)
public CoreMap coreMap()
public CoreDocument document()
public java.lang.String text()
public java.util.List<CoreSentence> sentences()
public java.util.Optional<java.lang.String> speaker()
public java.util.Optional<java.lang.String> canonicalSpeaker()
public java.util.Optional<java.util.List<CoreLabel>> speakerTokens()
public java.util.Optional<Pair<java.lang.Integer,java.lang.Integer>> speakerCharOffsets()
public java.util.Optional<CoreEntityMention> speakerEntityMention()
public java.util.Optional<java.util.List<CoreLabel>> canonicalSpeakerTokens()
public java.util.Optional<Pair<java.lang.Integer,java.lang.Integer>> canonicalSpeakerCharOffsets()
public java.util.Optional<CoreEntityMention> canonicalSpeakerEntityMention()
public Pair<java.lang.Integer,java.lang.Integer> quoteCharOffsets()
public java.lang.String toString()
toString
in class java.lang.Object