public Feature(String name, Object value, FeatureType type) throws TextClassificationException { this.name = escaper.escape(name); this.value = value; this.isDefaultValue = false; this.type = type; }
public Feature(String name, Object value, FeatureType type) throws TextClassificationException { this.name = escaper.escape(name); this.value = value; this.isDefaultValue = false; this.type = type; }
/** * Creates a feature that is aware if the value is a <b>default value</b>. This information is * used when filling the feature store. A sparse feature store would not add a feature if it is * a default value i.e. means a feature is <i>not set</i> * * @param name * Name of the feature * @param value * The feature value * @param isDefaultValue * A boolean if the feature value is a default value i.e. means this feature is * <i>not set</i> for an instance * @param type * Type of this feature * @throws TextClassificationException * in case of an error */ public Feature(String name, Object value, boolean isDefaultValue, FeatureType type) throws TextClassificationException { this.name = escaper.escape(name); this.value = value; this.isDefaultValue = isDefaultValue; this.type = type; }
/** * Creates a feature that is aware if the value is a <b>default value</b>. This information is * used when filling the feature store. A sparse feature store would not add a feature if it is * a default value i.e. means a feature is <i>not set</i> * * @param name * Name of the feature * @param value * The feature value * @param isDefaultValue * A boolean if the feature value is a default value i.e. means this feature is * <i>not set</i> for an instance * @param type * Type of this feature * @throws TextClassificationException * in case of an error */ public Feature(String name, Object value, boolean isDefaultValue, FeatureType type) throws TextClassificationException { this.name = escaper.escape(name); this.value = value; this.isDefaultValue = isDefaultValue; this.type = type; }