def geometric_mean(log_probs):
    try:
        return math.exp(sum(log_probs)) ** (1./len(log_probs))
    except:
        return 0
dataset/ETHPy150Open PorthTechnolegauIaith/moses-smt/docker/python-server.py/geometric_mean/original