def euclidean(matrix, vector, assure_consistency=False):
    """
    Calculate inversed euclidean distance for all words in matrix against vector.
    """
    if assure_consistency:
        vector = _assure_consistency(matrix, vector)
    inv_euc= 1/(1+matrix.subtract(vector).norm(axis=1))
    return inv_euc.sort(ascending=False)
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/similarity.py/euclidean/original