Function get_bigram_frequencies handles input argument format exceptions now