def loadMetricStats(metScoreFile, metric, start_indx, tot_cands):

    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
Initialize internal state from hashable object.
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/mert-scripts/PRO.py/loadMetricStats--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/random.py/WichmannHill.seed