|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.coref.DiscourseModel
public class DiscourseModel
Represents the elements which are part of a discourse.
| Constructor Summary | |
|---|---|
DiscourseModel()
Creates a new discourse model. |
|
| Method Summary | |
|---|---|
void |
addEntity(DiscourseEntity e)
Adds the specified entity to this discourse model. |
void |
clear()
Removes all elements from this discourse model. |
DiscourseEntity[] |
getEntities()
Returns the entities in the discourse model. |
DiscourseEntity |
getEntity(int i)
Returns the entity at the specified index. |
int |
getNumEntities()
Returns the number of entities in this discourse model. |
void |
mentionEntity(DiscourseEntity e)
Indicates that the specified entity has been mentioned. |
void |
mergeEntities(DiscourseEntity e1,
DiscourseEntity e2,
float confidence)
Merges the specified entities into a single entity with the specified confidence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscourseModel()
| Method Detail |
|---|
public void mentionEntity(DiscourseEntity e)
e - The entity which has been mentioned.public int getNumEntities()
public DiscourseEntity getEntity(int i)
i - The index of the entity to be returned.
public void addEntity(DiscourseEntity e)
e - the entity to be added to the model.
public void mergeEntities(DiscourseEntity e1,
DiscourseEntity e2,
float confidence)
e1 - The first entity.e2 - The second entity.confidence - The confidence.public DiscourseEntity[] getEntities()
public void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||