public abstract class AbstractNER extends ATool implements INER
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
entityClasses |
protected List<Entity> |
entityList |
protected String |
input |
cdl, cfgManager, LOG, versions
Constructor and Description |
---|
AbstractNER() |
Modifier and Type | Method and Description |
---|---|
List<Entity> |
_retrieve(String input) |
protected List<Entity> |
clean(List<Entity> list)
Cleans the entities, uses a tokenizer to tokenize all entities with the same algorithm.
|
protected Entity |
getEntity(String text,
String type,
float relevance,
String tool)
Creates a new Entity object.
|
List<Entity> |
getResults()
Returns results.
|
List<String> |
getSentences(Locale lang,
String input) |
String |
mapTypeToSupportedType(String toolType)
Gets the supported entity type for tool entity type.
|
abstract List<Entity> |
retrieve(String input)
Retrieves Entity objects from the give input String with sentences as plain text.
|
void |
run() |
void |
setInput(String input)
Sets the input with sentences as plain text.
|
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolName, getToolVersion, setCountDownLatch
protected String input
public abstract List<Entity> retrieve(String input)
INER
public List<Entity> getResults()
INER
INER.retrieve(String input)
method to get the result list.getResults
in interface INER
public void setInput(String input)
INER
protected Entity getEntity(String text, String type, float relevance, String tool)
text
- type
- relevance
- tool
- protected List<Entity> clean(List<Entity> list)
list
- Copyright © 2024. All rights reserved.