public class DiscourseModel extends Object
Constructor and Description |
---|
DiscourseModel()
Creates a new discourse model.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2016 The Apache Software Foundation. All rights reserved.