MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ScanWord

Function ScanWord

tensorflow/core/kernels/word2vec_kernels.cc:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace {
35
36bool ScanWord(StringPiece* input, string* word) {
37 str_util::RemoveLeadingWhitespace(input);
38 StringPiece tmp;
39 if (str_util::ConsumeNonWhitespace(input, &tmp)) {
40 word->assign(tmp.data(), tmp.size());
41 return true;
42 } else {
43 return false;
44 }
45}
46
47} // end namespace
48

Callers 1

InitMethod · 0.85

Calls 5

RemoveLeadingWhitespaceFunction · 0.85
ConsumeNonWhitespaceFunction · 0.85
assignMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected