public class TextProIT extends AbstractNER
Modifier and Type | Field and Description |
---|---|
org.apache.commons.configuration.XMLConfiguration |
CFG |
static String |
CFG_KEY_TEXTPRO_PATH |
static String |
CFG_KEY_TMP_FOLDER |
static Map<String,String> |
ENTITY_MAP |
String |
TEXTPRO_PATH |
String |
TMP_FOLDER |
static Charset |
UTF_8 |
entityClasses, entityList, input
cdl, cfgManager, LOG, versions
Constructor and Description |
---|
TextProIT() |
Modifier and Type | Method and Description |
---|---|
protected List<Entity> |
createEntities(String answer) |
protected String |
readResultFile(String file) |
protected void |
removeFiles(String file) |
List<Entity> |
retrieve(String input)
Retrieves Entity objects from the give input String with sentences as plain text.
|
protected void |
runTextPro(String filename) |
protected void |
writeInputFile(String input,
String filename) |
_retrieve, clean, getEntity, getResults, getSentences, mapTypeToSupportedType, run, setInput
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolName, getToolVersion, setCountDownLatch
public final org.apache.commons.configuration.XMLConfiguration CFG
public static final Charset UTF_8
public static final String CFG_KEY_TEXTPRO_PATH
public static final String CFG_KEY_TMP_FOLDER
public final String TEXTPRO_PATH
public final String TMP_FOLDER
public List<Entity> retrieve(String input)
INER
retrieve
in interface INER
retrieve
in class AbstractNER
input
- sentences as plain textprotected void writeInputFile(String input, String filename)
input
- filename
- protected void runTextPro(String filename)
filename
- protected void removeFiles(String file)
file
- Copyright © 2024. All rights reserved.