def convert2Frequency(featureDict):
    """
    Converts the count values of the feature dictionary to frequencies.

    Arguments
    ---------
    featureDict : dict
        dictionary of document with the respective values


    Returns
    -------
    featureDict : dict
        containing the corresponding frequencies converted to absolute numbers
    """
    if sum(featureDict.values()) != 0:
        invTotalNumber = 1.0 / sum(featureDict.values())
    else:
        invTotalNumber = 1.0
    featureDict.update((k, invTotalNumber*v) for k,v in featureDict.items())
    return featureDict