Home
last modified time | relevance | path

Searched refs:FeatureValue (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/lang_id/common/fel/
Dfeature-types.h37 typedef Predicate FeatureValue; typedef
55 virtual string GetFeatureValueName(FeatureValue value) const = 0;
95 const std::map<FeatureValue, string> &value_names) in EnumFeatureType() argument
105 string GetFeatureValueName(FeatureValue value) const override { in GetFeatureValueName()
117 FeatureValue GetDomainSize() const override { return domain_size_; } in GetDomainSize()
121 FeatureValue domain_size_ = 0;
124 std::map<FeatureValue, string> value_names_;
134 string GetFeatureValueName(FeatureValue value) const override { in GetFeatureValueName()
141 FeatureValue GetDomainSize() const override { return 2; } in GetDomainSize()
153 NumericFeatureType(const string &name, FeatureValue size) in NumericFeatureType()
[all …]
Dfeature-extractor.h62 typedef Predicate FeatureValue; typedef
67 explicit FloatFeatureValue(FeatureValue v) : discrete_value(v) {} in FloatFeatureValue()
69 FeatureValue discrete_value;
82 void add(FeatureType *type, FeatureValue value) { in add()
99 FeatureValue value(int index) const { return features_[index].value; } in value()
105 Element(FeatureType *t, FeatureValue v) : type(t), value(v) {} in Element()
108 FeatureValue value;
174 static constexpr FeatureValue kNone = -1;
322 FeatureValue value = Compute(workspaces, object, args...); in Evaluate()
329 virtual FeatureValue Compute(const WorkspaceSet &workspaces, in Compute()
[all …]
Dfeature-extractor.cc27 constexpr FeatureValue GenericFeatureFunction::kNone;
/external/libtextclassifier/lang_id/common/
Dembedding-network.cc177 const FeatureValue feature_value = feature_vector.value(fi); in ConcatEmbeddings()