public class LabelResultMapper extends BaseResultMapper<LabelResult,StatisticsLabel>
StatisticsLabel representation over gold and extracted labels for one classification document to create
instance of LabelResult.BaseResultMapper.MappingResult<E extends StatisticsElement>| Constructor and Description |
|---|
LabelResultMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected LabelResult |
buildResult(StatisticsLabel gold,
StatisticsLabel extracted)
Build
ElementResult based on gold and extracted values. |
protected BaseResultMapper.MappingResult<StatisticsLabel> |
createMappingResult(List<StatisticsLabel> goldLabels,
List<StatisticsLabel> extractedLabels)
Generate an instance of
BaseResultMapper.MappingResult to represent a result of mapping between golds and extracts. |
mapResultsprotected BaseResultMapper.MappingResult<StatisticsLabel> createMappingResult(List<StatisticsLabel> goldLabels, List<StatisticsLabel> extractedLabels)
BaseResultMapperBaseResultMapper.MappingResult to represent a result of mapping between golds and extracts.createMappingResult in class BaseResultMapper<LabelResult,StatisticsLabel>goldLabels - a collection of golds DTO'sextractedLabels - a collection of extracted DTO'sprotected LabelResult buildResult(StatisticsLabel gold, StatisticsLabel extracted)
BaseResultMapperElementResult based on gold and extracted values. One of the value can be null if element does not have corresponding
mapping element.buildResult in class BaseResultMapper<LabelResult,StatisticsLabel>gold - DTO's to create resultextracted - DTO's to create resultElementResultCopyright © 2020. All rights reserved.