def print_metrics_resource_type(classif_report, phase, resource_type):
	"""
	Prints metrics (precision, recall) for one resource type
	Resource type can be one of: 'B-MET', 'I-MET', 'B-DAT', 'O'
	"""
	resource_stats = classif_report[resource_type]
	precision = round(resource_stats['precision'], 3)
	recall = round(resource_stats['recall'], 3)
	if (recall + precision) != 0:        
		f1 = round(2 * recall * precision / (recall + precision), 3)
	else:
		f1 = 0
	if resource_type == 'O':
		print(phase + ':', resource_type, 'Precision:    ', precision, resource_type, 'Recall:    ', recall, 'F1:    ', f1)
	else:
		print(phase + ':', resource_type, 'Precision:', precision, resource_type, 'Recall:', recall, 'F1:', f1)
	return f1