def define_serialization_path(self, result): """ Defines the path to the file, where the serialization of the given evaluation result should be stored. """ tool_path = result["file"]["tool_path"] return util.update_file_extension(tool_path, ".results.txt")
def define_serialization_file_path(self, gt_file_path): """ Defines the path to the file, where the evaluation result for given gt file should be serialized. """ tool_path = self.get_tool_file_path(gt_file_path) return util.update_file_extension(tool_path, ".results.txt")
def get_serialization_path(self, actual_path): ''' Returns the path to the file, where the evaluation results for the given file/feature-pair should be stored. ''' return util.update_file_extension(actual_path, ".results.txt")
def get_visualization_path(self, actual_path): ''' Returns the path to the file, where the visualization of the evaluation of the given file/feature - pair should be stored. ''' return util.update_file_extension(actual_path, ".visualization.txt")