def compute_precision_recall(correct_chunk_cnt, found_pred_cnt, found_correct_cnt):
    """Computes and returns the precision and recall.

    Args:
    correct_chunk_cnt: The count of correctly predicted chunks.
    found_pred_cnt:  The count of predicted chunks.
    found_correct_cnt : The actual count of chunks.

    Returns:
    The slot precision and recall
    """

    if found_pred_cnt > 0:
        precision = 100 * correct_chunk_cnt / found_pred_cnt
    else:
        precision = 0

    if found_correct_cnt > 0:
        recall = 100 * correct_chunk_cnt / found_correct_cnt
    else:
        recall = 0

    return precision, recall