TaggerImpl::next() crashes if initNbest() is not called
Brought to you by:
taku-ku
Currently when calling TaggerImpl::next() it crashes, as agenda_ is not initialized with std::priority_queue. TaggerImpl::next() should check that agenda_ is not initialized:
bool TaggerImpl::next() {
if (!agenda_.get()) { return false; }
...