#!/usr/bin/env python3 """ ENLP A1: N-Gram Language Models @author: Klinton Bicknell, Harry Eldridge, Nathan Schneider DO NOT SHARE/DISTRIBUTE SOLUTIONS WITHOUT THE INSTRUCTOR'S PERMISSION """ import numpy as np from generate import GENERATE vocab = open("brown_vocab_100.txt") #load the indices dictionary word_index_dict = {} for i, line in enumerate(vocab): #TODO: import part 1 code to build dictionary f = open("brown_100.txt") counts = #TODO: initialize counts to a zero vector #TODO: iterate through file and update counts f.close() #TODO: normalize and writeout counts.