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()
IPostProcessing
getLabeledInput
in interface IPostProcessing
public Map<String,String> getLabeledMap(Map<String,String> map)
getLabeledMap
in interface IPostProcessing
map
- public Map<String,Set<Entity>> getLabeledToolResults()
IPostProcessing
getLabeledToolResults
in interface IPostProcessing
public Map<String,Set<Entity>> getToolResults()
IPostProcessing
getToolResults
in interface IPostProcessing
public Set<Entity> instancesToEntities(weka.core.Instances instances)
instancesToEntities
in interface IPostProcessing
Copyright © 2024. All rights reserved.