MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / Clear

Method Clear

external/sentencepiece/src/unigram_model.cc:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void Lattice::Clear() {
106 begin_nodes_.clear();
107 end_nodes_.clear();
108 sentence_ = absl::string_view("");
109 surface_.clear();
110 node_allocator_.Free();
111}
112
113void Lattice::SetSentence(absl::string_view sentence) {
114 Clear();

Callers 4

SetSentencePiecesMethod · 0.45
TESTFunction · 0.45
SerializeMethod · 0.45
TESTFunction · 0.45

Calls 2

FreeMethod · 0.80
clearMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36