mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-11 06:15:56 +03:00
segfault
This commit is contained in:
parent
5d46e6e063
commit
728ca05152
@ -42,7 +42,7 @@ size_t Vocab::GetOrCreate(const std::string &word)
|
||||
std::vector<size_t> Vocab::ProcessSentence(const std::string &sentence)
|
||||
{
|
||||
vector<string> toks = Tokenize(sentence);
|
||||
vector<size_t> ret;
|
||||
vector<size_t> ret(toks.size());
|
||||
|
||||
for (size_t i = 0; i < toks.size(); ++i) {
|
||||
size_t id = GetOrCreate(toks[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user