(self, raw_x_batch)
return bags
Return:
            len(vocab) by len(raw_x_batch) np array
Return:
            len(vocab) by len(raw_x_batch) np array
Return : len ( vocab ) by len ( raw_x_batch ) np array
def process_x(self, raw_x_batch):
        """
        Return:
            len(vocab) by len(raw_x_batch) np array
        """
        x_batch = [e[4] for e in raw_x_batch] # list of lines/phrases
        bags = [bag_of_words(line, self.vocab) for line in x_batch]
        bags = np.array(bags)
        return bags
def process_x ( self , raw_x_batch ) : x_batch = [ e [ 4 ] for e in raw_x_batch ] # list of lines/phrases bags = [ bag_of_words ( line , self . vocab ) for line in x_batch ] bags = np . array ( bags ) return bags