if (index.equals("vocabCount")) {
return getVocabCountFromHbase();
} else if (index.equals("sigma_jSigma_k")) {
return getSigmaJSigmaKFromHbase();
} else {
throw new InvalidDatastoreException();
}
} else if (vectorName.equals("labelWeight")) {
return getWeightFromHbase(BayesConstants.LABEL_SUM, index);
} else if (vectorName.equals("thetaNormalizer")) {
return getWeightFromHbase(BayesConstants.LABEL_THETA_NORMALIZER, index) / thetaNormalizer;
} else if (vectorName.equals("params")) {
if (index.equals("alpha_i")) {
return alphaI;
} else {
throw new InvalidDatastoreException();
}
} else {
throw new InvalidDatastoreException();
}
}