public class AddCategory extends Object
Modifier and Type | Field and Description |
---|---|
String |
CATEGORY_PARAMETER |
Constructor and Description |
---|
AddCategory(String gateHome)
Initializes a new category that will be added in the GATE entity mining
component.
|
AddCategory(String gateHome,
String categoryName,
TreeSet<String> entities)
Initializes a new category that will be added in the GATE entity mining
component.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Adds the category in the GATE entity mining component.
|
String |
getCategoryName()
Returns the category name.
|
String |
getCategoryNameNoSpace()
Returns the category name with no spaces.
|
TreeSet<String> |
getEntities()
Returns the named entities.
|
String |
getGAZETEER_FOLDER()
Returns the GATE gazeteer folder.
|
String |
getJAPE_FILE_NAME()
Returns the JAPE file name.
|
String |
getJAPE_FILE_TEMPLATE()
Returns the JAPE template file.
|
String |
getLIST_FILE_NAME()
Returns the list file name.
|
String |
getLISTS_DEF_FILE()
Returns the lists file.
|
String |
getLISTS_DEF_TEMPLATE_LINE()
Returns he lists template line.
|
String |
getMAIN_JAPE_FILE()
Returns the MAIN JAPE file.
|
String |
getNE_FOLDER()
Returns the NE folder.
|
void |
setCategoryName(String categoryName)
Sets/changes the category name.
|
void |
setCategoryNameNoSpace(String categoryNameNoSpace)
Sets/changes the category name with no spaces.
|
void |
setEntities(TreeSet<String> entities)
Sets/changes the named entities.
|
void |
setGAZETEER_FOLDER(String GAZETEER_FOLDER)
Sets/changes the Gazetter folder.
|
void |
setJAPE_FILE_NAME(String JAPE_FILE_NAME)
Sets/changes the JAPE file name.
|
void |
setJAPE_FILE_TEMPLATE(String JAPE_FILE_TEMPLATE)
Sets/changes the JAPE template file.
|
void |
setLIST_FILE_NAME(String LIST_FILE_NAME)
Sets/changes the list file name.
|
void |
setLISTS_DEF_FILE(String LISTS_DEF_FILE)
Sets/changes the lists file.
|
void |
setLISTS_DEF_TEMPLATE_LINE(String LISTS_DEF_TEMPLATE_LINE)
Sets/changes the lists template line.
|
void |
setMAIN_JAPE_FILE(String MAIN_JAPE_FILE)
Sets/changes the MAIN JAPE file.
|
void |
setNE_FOLDER(String NE_FOLDER)
Sets/changes the NE folder.
|
public final String CATEGORY_PARAMETER
public AddCategory(String gateHome)
gateHome
- The folder of the GATE entity mining component.public AddCategory(String gateHome, String categoryName, TreeSet<String> entities) throws IOException, MalformedURLException, gate.creole.ResourceInstantiationException, gate.util.GateException
gateHome
- The folder of the GATE entity mining component.categoryName
- The name of the category.entities
- The set of named entities.IOException
MalformedURLException
gate.creole.ResourceInstantiationException
gate.util.GateException
public void add() throws IOException, MalformedURLException, gate.creole.ResourceInstantiationException, gate.util.GateException
IOException
MalformedURLException
gate.creole.ResourceInstantiationException
gate.util.GateException
public String getGAZETEER_FOLDER()
public void setGAZETEER_FOLDER(String GAZETEER_FOLDER)
GAZETEER_FOLDER
- The Gazetter folder.public String getJAPE_FILE_NAME()
public void setJAPE_FILE_NAME(String JAPE_FILE_NAME)
JAPE_FILE_NAME
- The JAPE file name.public String getJAPE_FILE_TEMPLATE()
public void setJAPE_FILE_TEMPLATE(String JAPE_FILE_TEMPLATE)
JAPE_FILE_TEMPLATE
- The JAPE template file.public String getLISTS_DEF_FILE()
public void setLISTS_DEF_FILE(String LISTS_DEF_FILE)
LISTS_DEF_FILE
- The lists file.public String getLISTS_DEF_TEMPLATE_LINE()
public void setLISTS_DEF_TEMPLATE_LINE(String LISTS_DEF_TEMPLATE_LINE)
LISTS_DEF_TEMPLATE_LINE
- The lists template line.public String getLIST_FILE_NAME()
public void setLIST_FILE_NAME(String LIST_FILE_NAME)
LIST_FILE_NAME
- The list file name.public String getMAIN_JAPE_FILE()
public void setMAIN_JAPE_FILE(String MAIN_JAPE_FILE)
MAIN_JAPE_FILE
- The MAIN JAPE file.public String getNE_FOLDER()
public void setNE_FOLDER(String NE_FOLDER)
NE_FOLDER
- The NE folder.public String getCategoryName()
public void setCategoryName(String categoryName)
categoryName
- The category name.public String getCategoryNameNoSpace()
public void setCategoryNameNoSpace(String categoryNameNoSpace)
categoryNameNoSpace
- The category name with no spaces.public TreeSet<String> getEntities()
Copyright © 2014. All rights reserved.