public abstract class DiscourseElement extends Object
DiscourseModel
Constructor and Description |
---|
DiscourseElement(MentionContext mention)
Creates a new discourse element which contains the specified mention.
|
Modifier and Type | Method and Description |
---|---|
void |
addMention(MentionContext mention)
Adds the specified mention to this discourse element.
|
int |
getId()
Returns the id associated with this element.
|
MentionContext |
getLastExtent()
Returns the last mention for this element.
|
Iterator<MentionContext> |
getMentions()
Returns an iterator over the mentions which iterates through them based on
their occurrence in the document.
|
int |
getNumMentions()
Returns the number of mentions in this element.
|
Iterator<MentionContext> |
getRecentMentions()
Returns an iterator over the mentions which iterates through them based on which were most recently mentioned.
|
void |
setId(int id)
Associates an id with this element.
|
String |
toString() |
public DiscourseElement(MentionContext mention)
mention
- The mention which begins this discourse element.public Iterator<MentionContext> getRecentMentions()
Iterator
.public Iterator<MentionContext> getMentions()
Iterator
public int getNumMentions()
public void addMention(MentionContext mention)
mention
- The mention to be added.public MentionContext getLastExtent()
public void setId(int id)
id
- The id.public int getId()
Copyright © 2019 The Apache Software Foundation. All rights reserved.