def dataset_word_frequencies(nodes):
    """
    Get frequency of words from an extracted dataset.
    """
    freqs = {}
    for node in nodes.values():
        for t in node.tokens:
            freqs[t.lower()] = freqs.get(t.lower(), 0) + 1
    return freqs