def get_feature_nums(feature_name2num, feature_type2name, feature_type):
    """ Returns the list of feature numbers wrt given feature type"""
    return [feature_name2num[ftr_name] for ftr_name in feature_type2name.get(feature_type, [])]