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()
EntityMiner
findEntities
in interface EntityMiner
public Set<String> getAcceptedCategories()
public void setAcceptedCategories(Set<String> acceptedCategories)
EntityMiner
setAcceptedCategories
in interface EntityMiner
public void addAcceptedCategory(String category)
category
- The category name.public void removeAcceptedCategory(String category)
category
- The category name.public void setTextToMine(String textToMine)
TextEntityMiner
setTextToMine
in interface TextEntityMiner
textToMine
- 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()
EntityMiner
rankEntities
in interface EntityMiner
public ArrayList<Entity> getEntities()
EntityMiner
getEntities
in interface EntityMiner
Copyright © 2014. All rights reserved.