Skip to content

Commit

Permalink
fixed copilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Apr 25, 2021
1 parent a3dd3b9 commit ae28a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/py_LLDA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ PyObject* Document_labels(DocumentObject* self, void* closure)
if (self->corpus->isIndependent()) throw py::AttributeError{ "doc doesn't has `labels` field!" };
if (!self->doc) throw py::RuntimeError{ "doc is null!" };

if (auto* ret = docVisit<tomoto::DocumentLLDA>(self->getBoundDoc(), [&](auto* doc)
if (auto* r = docVisit<tomoto::DocumentLLDA>(self->getBoundDoc(), [&](auto* doc)
{
auto inst = dynamic_cast<tomoto::ILLDAModel*>(self->corpus->tm->inst);
auto dict = inst->getTopicLabelDict();
Expand All @@ -144,7 +144,7 @@ PyObject* Document_labels(DocumentObject* self, void* closure)
}
}
return py::buildPyValue(ret);
})) return ret;
})) return r;

throw py::AttributeError{ "doc doesn't has `labels` field!" };
});
Expand Down

0 comments on commit ae28a1f

Please sign in to comment.