Home
last modified time | relevance | path

Searched refs:semantic_expression (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/native/utils/grammar/testing/
Dutils.h94 SemanticExpressionT semantic_expression; in AsSemanticExpressionUnion() local
95 semantic_expression.expression.Set(std::forward<T>(expression)); in AsSemanticExpressionUnion()
96 return semantic_expression; in AsSemanticExpressionUnion()
144 auto semantic_expression = std::make_unique<SemanticExpressionT>(); in CreateConstExpression() local
145 semantic_expression->expression.Set(const_value); in CreateConstExpression()
146 return semantic_expression; in CreateConstExpression()
170 auto semantic_expression = std::make_unique<SemanticExpressionT>(); in CreateConstDateExpression() local
171 semantic_expression->expression.Set(const_value); in CreateConstDateExpression()
172 return semantic_expression; in CreateConstDateExpression()
195 auto semantic_expression = std::make_unique<SemanticExpressionT>(); in CreatePrimitiveConstExpression() local
[all …]
/external/libtextclassifier/native/utils/grammar/semantics/
Dcomposer_test.cc51 /*callback_param=*/model.semantic_expression.size()); in TEST_F()
59 model.semantic_expression.emplace_back(new SemanticExpressionT); in TEST_F()
60 model.semantic_expression.back()->expression.Set(const_value); in TEST_F()
65 /*callback_param=*/model.semantic_expression.size()); in TEST_F()
73 model.semantic_expression.emplace_back(new SemanticExpressionT); in TEST_F()
74 model.semantic_expression.back()->expression.Set(const_value); in TEST_F()
125 /*callback_param=*/model.semantic_expression.size()); in TEST_F()
133 model.semantic_expression.emplace_back(new SemanticExpressionT); in TEST_F()
134 model.semantic_expression.back()->expression.Set(const_value); in TEST_F()
145 /*callback_param=*/model.semantic_expression.size()); in TEST_F()
[all …]
/external/libtextclassifier/native/utils/grammar/
Danalyzer_test.cc46 /*callback_param=*/model.semantic_expression.size()); in TEST_F()
47 model.semantic_expression.push_back(CreatePrimitiveConstExpression(1)); in TEST_F()
51 /*callback_param=*/model.semantic_expression.size()); in TEST_F()
52 model.semantic_expression.push_back(CreatePrimitiveConstExpression(2)); in TEST_F()
Drules.fbs204 semantic_expression:[SemanticExpression];
/external/libtextclassifier/native/utils/grammar/semantics/evaluators/
Dmerge-values-eval.cc33 for (const SemanticExpression* semantic_expression : in Apply()
36 composer_->Apply(context, semantic_expression, arena)); in Apply()
Darithmetic-eval.cc54 for (const SemanticExpression* semantic_expression : in Reduce()
58 composer->Apply(context, semantic_expression, arena)); in Reduce()
/external/libtextclassifier/native/utils/grammar/parsing/
Dmatcher.cc371 rules_->semantic_expression()->Get(callback_param)); in ExecuteLhsSet()