Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/parsing/
Dmatcher_test.cc139 matcher.AddTerminal(0, 1, "the"); in TEST_F()
140 matcher.AddTerminal(1, 2, "quick"); in TEST_F()
141 matcher.AddTerminal(2, 3, "brown"); in TEST_F()
142 matcher.AddTerminal(3, 4, "fox"); in TEST_F()
196 matcher.AddTerminal(0, 1, "the"); in TEST_F()
197 matcher.AddTerminal(1, 2, "quick"); in TEST_F()
198 matcher.AddTerminal(2, 3, "brown"); in TEST_F()
199 matcher.AddTerminal(3, 4, "fox"); in TEST_F()
200 matcher.AddTerminal(3, 5, "fox"); in TEST_F()
201 matcher.AddTerminal(4, 6, "fox"); // Not adjacent to "brown". in TEST_F()
[all …]
Dmatcher.h87 void AddTerminal(const CodepointSpan codepoint_span, const int match_offset,
89 void AddTerminal(const CodepointIndex begin, const CodepointIndex end, in AddTerminal() function
91 AddTerminal(CodepointSpan{begin, end}, begin, terminal); in AddTerminal()
Dparser.cc244 matcher->AddTerminal(symbol.codepoint_span, symbol.match_offset, in EmitSymbol()
Dmatcher.cc259 void Matcher::AddTerminal(const CodepointSpan codepoint_span, in AddTerminal() function in libtextclassifier3::grammar::Matcher