Home
last modified time | relevance | path

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

/external/libtextclassifier/native/lang_id/common/fel/
Dfeature-types.h37 typedef Predicate FeatureValue; typedef
55 virtual std::string GetFeatureValueName(FeatureValue value) const = 0;
95 const std::map<FeatureValue, std::string> &value_names) in EnumFeatureType() argument
105 std::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, std::string> value_names_;
135 std::string GetFeatureValueName(FeatureValue value) const override { in GetFeatureValueName()
142 FeatureValue GetDomainSize() const override { return 2; } in GetDomainSize()
154 NumericFeatureType(const std::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;
323 FeatureValue value = Compute(workspaces, object, args...); in Evaluate()
330 virtual FeatureValue Compute(const WorkspaceSet &workspaces, in Compute()
[all …]
Dfeature-extractor.cc29 constexpr FeatureValue GenericFeatureFunction::kNone;
/external/libtextclassifier/native/lang_id/common/
Dembedding-network.cc177 const FeatureValue feature_value = feature_vector.value(fi); in ConcatEmbeddings()