Home
last modified time | relevance | path

Searched refs:FeatureFunctionDescriptor (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/native/lang_id/common/fel/
Dfeature-descriptors.h49 class FeatureFunctionDescriptor {
51 FeatureFunctionDescriptor() {} in FeatureFunctionDescriptor() function
87 FeatureFunctionDescriptor *add_feature() { in add_feature()
88 sub_features_.emplace_back(new FeatureFunctionDescriptor()); in add_feature()
92 const FeatureFunctionDescriptor &feature(int i) const { in feature()
114 std::vector<std::unique_ptr<FeatureFunctionDescriptor>> sub_features_;
116 SAFTM_DISALLOW_COPY_AND_ASSIGN(FeatureFunctionDescriptor);
127 FeatureFunctionDescriptor *add_feature() { in add_feature()
128 features_.emplace_back(new FeatureFunctionDescriptor()); in add_feature()
132 const FeatureFunctionDescriptor &feature(int i) const { in feature()
[all …]
Dfel-parser.cc173 FeatureFunctionDescriptor *descriptor = result->add_feature(); in Parse()
184 bool FELParser::ParseFeature(FeatureFunctionDescriptor *result) { in ParseFeature()
227 FeatureFunctionDescriptor *subfeature = result->add_feature(); in ParseFeature()
242 FeatureFunctionDescriptor *subfeature = result->add_feature(); in ParseFeature()
251 bool FELParser::ParseParameter(FeatureFunctionDescriptor *result) { in ParseParameter()
Dfeature-descriptors.cc26 void ToFELFunction(const FeatureFunctionDescriptor &function, in ToFELFunction()
46 void ToFEL(const FeatureFunctionDescriptor &function, std::string *output) { in ToFEL()
68 std::string FeatureFunctionDescriptor::DebugString() const { in DebugString()
Dfeature-extractor.h245 const FeatureFunctionDescriptor *descriptor() const { return descriptor_; } in descriptor()
246 void set_descriptor(const FeatureFunctionDescriptor *descriptor) { in set_descriptor()
286 const FeatureFunctionDescriptor *descriptor_ = nullptr;
343 const FeatureFunctionDescriptor *fd, in Instantiate()
442 const FeatureFunctionDescriptor *fd, std::vector<NES *> *functions, in CreateNested()
445 const FeatureFunctionDescriptor &sub = fd->feature(i); in CreateNested()
629 const FeatureFunctionDescriptor &fd = descriptor().feature(i); in InitializeFeatureFunctions()
Dfel-parser.h75 bool ParseFeature(FeatureFunctionDescriptor *result);
79 bool ParseParameter(FeatureFunctionDescriptor *result);