@@ -130,11 +126,21 @@ def to_bigram_vector(bag_of_bigrams, corpus): #corpus is the bigram_list
if__name__=='__main__':
"""
function calls for testing purposes on a small corpus
"""
corpus=read_corpus("minicorpus.csv")
#for thing in corpus:
#print(thing)
bigram_pos_vocab=get_pos_vocabulary(corpus)
corpus_instance="1,36_12_R3W1O661T65OBH.txt,3.0,It's Just A Broom - No Handle!,'October 6, 2004',D. Richardson,WOLF-Garten Outdoor Broom B40M (Lawn & Patio),'Unless you want to sweep on your hands and knees, make sure you purchase the handle separately!'"