def main():

    histogram_list, word_list = dictionary_builder.build_histogram('Resources/TestFiles/sherlock_holmes.txt')

    randWeight = random_weighted_word(word_list)
    print("Weight Random: " + str(randWeight) + " " + str(histogram_list[randWeight]))

    freq = frequency("mystery", histogram_list)
    freq_project = frequency("works", histogram_list)
    # print(frequency(wl[-2], histogram_list))
    words = unique_words(histogram_list)
    rand_word = random_word(histogram_list)

    print(freq)
    print("Freq of works: " + str(freq_project))
    print(words)
    #
    print("Random word is: " + rand_word)
 def generate_word_frequency(self):
     return dictionary_builder.build_histogram(self.tokens)