def loadMetricStats(metScoreFile, metric, start_indx, tot_cands):
    """ Loads metric stats from scores file """

    global metricLines
    metricScores = []

    if not metricLines:
        print "Loading metric stats from file : %s ..." % (metScoreFile)
        msF = open(metScoreFile, 'r')
        for met_line in msF.readlines():
            if metric > 'ter': metricLines.append( max(1.0 - float(met_line), 0.0) )
            else: metricLines.append( float(met_line) )
        msF.close()

    for met_score in metricLines[start_indx:start_indx + tot_cands]:
        metricScores.append( met_score )

    return metricScores
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/mert-scripts/PRO.py/loadMetricStats/operator `==` -> `>`