Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ OnToken
Method
OnToken
library/cpp/tokenizer/split.cpp:34–40 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
}
33
34
void OnToken(const TWideToken& token, size_t, NLP_TYPE type) override {
35
CurToken += token.Text();
36
37
if (type == NLP_SENTBREAK || type == NLP_PARABREAK) {
38
Flush();
39
}
40
}
41
42
void Flush() {
43
if (!CurToken.empty()) {
Callers
nothing calls this directly
Calls
2
Flush
Function · 0.50
Text
Method · 0.45
Tested by
no test coverage detected