public class GateEntityMiner extends Object implements TextEntityMiner
| Constructor and Description |
|---|
GateEntityMiner()
Creates a new GATE entity mining tool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAcceptedCategory(String category)
Adds a new category to the list of accepted categories.
|
void |
addTextToMine(String textToMine)
Adds a text that we want to mine.
|
void |
findEntities()
Starts the procedure of entity mining.
|
Set<String> |
getAcceptedCategories()
Returns the accepted categories, i.e.
|
ArrayList<Entity> |
getEntities()
Returns a list with the detected entities.
|
String |
getTextToMine()
Returns the text in which we want to perform entity mining.
|
void |
rankEntities()
Ranks the detected entities.
|
void |
removeAcceptedCategory(String category)
Removes a category from the list of accepted categories.
|
void |
setAcceptedCategories(Set<String> acceptedCategories)
Sets the categories of entities for which we want to detect entities.
|
void |
setEntityMiningComponent(EntityMiningComponent emc)
Sets/changes the entity mining component.
|
void |
setTextToMine(String textToMine)
Sets the text in which the entity mining procedure will be performed.
|
public void setEntityMiningComponent(EntityMiningComponent emc)
emc - The entity mining component.public void findEntities()
EntityMinerfindEntities in interface EntityMinerpublic Set<String> getAcceptedCategories()
public void setAcceptedCategories(Set<String> acceptedCategories)
EntityMinersetAcceptedCategories in interface EntityMinerpublic void addAcceptedCategory(String category)
category - The category name.public void removeAcceptedCategory(String category)
category - The category name.public void setTextToMine(String textToMine)
TextEntityMinersetTextToMine in interface TextEntityMinertextToMine - The0text in which the entity mining procedure will be
performed.public String getTextToMine()
public void addTextToMine(String textToMine)
textToMine - The text we want to mine.public void rankEntities()
EntityMinerrankEntities in interface EntityMinerpublic ArrayList<Entity> getEntities()
EntityMinergetEntities in interface EntityMinerCopyright © 2014. All rights reserved.