MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getitem

Method getitem

src/python/handler/py_utils.cpp:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::string_view VocabObject::getitem(size_t key) const
86{
87 if (key >= len()) throw py::IndexError{ std::to_string(key) };
88 return vocabs->toWord(key);
89}
90
91py::UniqueObj VocabObject::repr() const
92{

Callers

nothing calls this directly

Calls 9

getDocumentClsFunction · 0.85
reprFunction · 0.85
copyFromMethod · 0.80
emplace_backMethod · 0.80
emplaceMethod · 0.80
isIndependentMethod · 0.80
getMethod · 0.45
getDocMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected