Skip to content

Commit 3812a41

Browse files
committed
Fix r cmd check warning fedora clang
1 parent af0d7b9 commit 3812a41

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: word2vec
22
Type: Package
33
Title: Distributed Representations of Words
4-
Version: 0.2.0
4+
Version: 0.2.1
55
Authors@R: c(
66
person('Jan', 'Wijffels', role = c('aut', 'cre', 'cph'), email = 'jwijffels@bnosac.be', comment = "R wrapper"),
77
person('BNOSAC', role = 'cph', comment = "R wrapper"),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## CHANGES IN word2vec VERSION 0.2.1
2+
3+
- Fix R CMD check warning message on Fedora clang
4+
15
## CHANGES IN word2vec VERSION 0.2
26

37
- Extended predict.w2v with nearest if you pass on a vector or matrix. This allows to perform word2vec analogies or extract other similarities.

src/rcpp_word2vec.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ Rcpp::List w2v_train(std::string trainFile, std::string modelFile, std::string s
173173

174174
// [[Rcpp::export]]
175175
Rcpp::List w2v_load_model(std::string file, bool normalize = true) {
176+
bool normalise = normalize;
176177
Rcpp::XPtr<w2v::w2vModel_t> model(new w2v::w2vModel_t(), true);
177-
if (!model->load(file, normalize = normalize)) {
178+
if (!model->load(file, normalize = normalise)) {
178179
Rcpp::stop(model->errMsg());
179180
}
180181
Rcpp::List out = Rcpp::List::create(

0 commit comments

Comments
 (0)