summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp b/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp
index fd45edaa1..34709e457 100644
--- a/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp
+++ b/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp
@@ -370,16 +370,13 @@ void Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetWeightClassi
jobject /* thiz */,
jobjectArray key_array_model,
jfloatArray value_array_model,
- jfloat normalizer,
+ jfloat /* normalizer */,
jlong paPtr) {
StochasticLinearRanker<string>* classifier = (StochasticLinearRanker<string>*) paPtr;
SparseWeightVector<string> M_weights;
classifier->SaveWeights(&M_weights);
SparseWeightVector<string>::Wmap w_map = M_weights.GetMap();
- int array_len = w_map.size();
-
- normalizer = M_weights.GetNormalizer();
DecomposeSparseWeightVector(env, &key_array_model, &value_array_model, &M_weights);
}