def add_feature(self,feat):
        # if(self.add_features == False):
        #     print feat
        if(feat in self.feature_dic):
            return self.feature_dic[feat]
        if(self.add_features == False):
            return -1
        nr_feat = len(self.feature_dic.keys())
        #print "Adding feature %s %i"%(feat,nr_feat)
        self.feature_dic[feat] = nr_feat
        self.feature_names.append(feat)
        return nr_feat
dataset/ETHPy150Open LxMLS/lxmls-toolkit/lxmls/sequences/bak/postag_features.py/ExtendedFeatures.add_feature/original