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