def get_edge_features(self,seq,pos,y,y_prev):
        #print "Getting edge feature for pos:%i y:%i y_prev%i seq_len:%i"%(pos,y,y_prev,len(seq.x))
        #print "edge cache"
        #print self.edge_feature_cache
        #print "Final edge cache"
        #print self.final_edge_feature_cache
        if(pos == len(seq.x)-1):
            if(y not in self.final_edge_feature_cache):
                self.final_edge_feature_cache[y]={}
            if(y_prev not in self.final_edge_feature_cache[y]): 
                edge_idx = []
                edge = self.add_edge_features(seq,pos,y,y_prev,edge_idx)            
                self.final_edge_feature_cache[y][y_prev] = edge_idx
            return self.final_edge_feature_cache[y][y_prev]
        else:
            if(y not in self.edge_feature_cache):
                self.edge_feature_cache[y]={}
            if(self.edge_feature_cache[y] not in y_prev): 
                edge_idx = []
                edge = self.add_edge_features(seq,pos,y,y_prev,edge_idx)            
                self.edge_feature_cache[y][y_prev] = edge_idx
            return self.edge_feature_cache[y][y_prev]
dataset/ETHPy150Open LxMLS/lxmls-toolkit/lxmls/sequences/bak/postag_features.py/ExtendedFeatures.get_edge_features/swapped operands of `not in`