def normalizeWgts(unNormWgts):

    sum_wgt = 0.0
    for f_wgt in unNormWgts: sum_wgt += math.fabs(f_wgt)

    newWgts = []
    for f_wgt in unNormWgts:
        newWgts.append( f_wgt/ sum_wgt )
    return newWgts
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/mert-scripts/PRO.py/normalizeWgts/original