vendor/tomotopy/src/TopicModel/MGLDAModel.hpp in tomoto-0.2.2 vs vendor/tomotopy/src/TopicModel/MGLDAModel.hpp in tomoto-0.2.3
- old
+ new
@@ -61,11 +61,11 @@
sample::prefixSum(zLikelihood.data(), T * (K + KL));
return &zLikelihood[0];
}
template<int _inc>
- inline void addWordTo(_ModelState& ld, _DocType& doc, uint32_t pid, Vid vid, Tid tid, uint16_t s, uint8_t w, uint8_t r) const
+ inline void addWordTo(_ModelState& ld, _DocType& doc, size_t pid, Vid vid, Tid tid, uint16_t s, uint8_t w, uint8_t r) const
{
const auto K = this->K;
assert(r != 0 || tid < K);
assert(r == 0 || tid < KL);
@@ -525,10 +525,10 @@
}
this->dict.add(word);
this->etaByWord.emplace(word, priors);
}
- std::vector<Float> getTopicsByDoc(const _DocType& doc, bool normalize) const
+ std::vector<Float> _getTopicsByDoc(const _DocType& doc, bool normalize) const
{
std::vector<Float> ret(this->K + KL);
Eigen::Map<Eigen::Array<Float, -1, 1>> m{ ret.data(), this->K + KL };
if (normalize)
{