def get_evaluation_metrics(targets, predictions):
    """Compute the f1, precision, accuracy and summary report from sklearn."""
    from sklearn import metrics
    report = metrics.classification_report(targets, predictions)
    precision = metrics.precision_score(targets, predictions, average=
        'weighted')
    f1 = metrics.f1_score(targets, predictions, average='weighted')
    accuracy = metrics.accuracy_score(targets, predictions)
    return report, precision, f1, accuracy
