def get_node_features(self,seq,pos,y):
        all_feat = []
        x = seq.x[pos]
        if(x not in self.node_feature_cache):
            self.node_feature_cache[x] = {}
        if(self.node_feature_cache[x] not in y):
            node_idx = []
            node_idx = self.add_node_features(seq,pos,y,node_idx)
            #node_idx = filter (lambda a: a != -1, node_idx)
            self.node_feature_cache[x][y] = node_idx
        idx = self.node_feature_cache[x][y]
        all_feat = idx[:]
        #print idx
        if(pos == 0):
            if(y not in self.initial_state_feature_cache):
                init_idx = []
                init_idx = self.add_init_state_features(seq,pos,y,init_idx)
                self.initial_state_feature_cache[y] = init_idx
            all_feat.extend(self.initial_state_feature_cache[y])
        #print "before init"
        #print idx
        #print "after init"
        return all_feat
dataset/ETHPy150Open LxMLS/lxmls-toolkit/lxmls/sequences/bak/postag_features.py/ExtendedFeatures.get_node_features/swapped operands of `not in`