
public class PostProcessing extends Object implements IPostProcessing
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
protected TokenManager |
tokenManager |
protected Map<String,Set<Entity>> |
toolResults |
| Constructor and Description |
|---|
PostProcessing(TokenManager tokenManager,
Map<String,Set<Entity>> toolResults)
PostProcessing.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getLabeledInput()
Set of labels that is used to classify.
|
Map<String,String> |
getLabeledMap(Map<String,String> map)
Label oracle.
|
Map<String,Set<Entity>> |
getLabeledToolResults()
Gets labeled tool results.
|
Map<String,Set<Entity>> |
getToolResults()
Gets cleaned tool results.
|
Set<Entity> |
instancesToEntities(weka.core.Instances instances)
Labeled instances to final entities.
|
protected Map<String,String> |
labeledEntry(Map.Entry<String,String> entity,
Map<String,String> labeledMap) |
public static org.apache.log4j.Logger LOG
protected TokenManager tokenManager
public PostProcessing(TokenManager tokenManager, Map<String,Set<Entity>> toolResults)
input - sentencestoolResults - tool name to result setpublic Set<String> getLabeledInput()
IPostProcessinggetLabeledInput in interface IPostProcessingpublic Map<String,String> getLabeledMap(Map<String,String> map)
getLabeledMap in interface IPostProcessingmap - public Map<String,Set<Entity>> getLabeledToolResults()
IPostProcessinggetLabeledToolResults in interface IPostProcessingpublic Map<String,Set<Entity>> getToolResults()
IPostProcessinggetToolResults in interface IPostProcessingpublic Set<Entity> instancesToEntities(weka.core.Instances instances)
instancesToEntities in interface IPostProcessingCopyright © 2024. All rights reserved.