def get_sentence_ranking(text, relative_word_frequency):
    """Return dictionary with sentences as keys and total value of relative word frequencies present in sentence."""
    sentence_ranking = {}
    for sentence in text.sents:
        for word in sentence:
            lower_word = word.text.lower()
            if lower_word in relative_word_frequency.keys():
                frequency = relative_word_frequency[lower_word]
                if sentence in sentence_ranking.keys():
                    sentence_ranking[sentence] += frequency
                else:
                    sentence_ranking[sentence] = frequency

    return sentence_ranking