def sentence_accuracy(references, predictions):
    """Compute accuracy, each line contains a label."""
    count = 0.0
    match = 0.0
    for label, pred in zip(references, predictions):
        if label == pred:
            match += 1
        count += 1
    return 100 * match / count