MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / ResolveEndToken

Method ResolveEndToken

include/ctranslate2/generation.h:140–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139 public:
140 ResolveEndToken(const Vocabulary& vocabulary)
141 : _vocabulary(vocabulary)
142 {
143 }
144
145 std::vector<size_t> operator()(const std::string& token) const {
146 if (token.empty())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected