From 4828ae22795cc5b030c957abc7d3dde6a2f3d6c4 Mon Sep 17 00:00:00 2001 From: tshev Date: Mon, 24 Jun 2019 15:37:56 +0300 Subject: [PATCH] fix an issue: https://github.com/tshev/faster-FastText/issues/5 --- src/fasttext.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fasttext.cc b/src/fasttext.cc index 43f53be..454dab2 100644 --- a/src/fasttext.cc +++ b/src/fasttext.cc @@ -749,7 +749,7 @@ std::shared_ptr FastText::getInputMatrixFromFile( for (size_t i = 0; i < n; i++) { std::string word; in >> word; - words.push_back(std::move(word)); + words.push_back(word); dict_->add(word); for (size_t j = 0; j < dim; j++) { in >> mat.at(i, j);