diff --git a/include/model/DecodableModel.hpp b/include/model/DecodableModel.hpp index 7da58d4f..7d1e8bb7 100644 --- a/include/model/DecodableModel.hpp +++ b/include/model/DecodableModel.hpp @@ -29,6 +29,7 @@ // ToPS templates #include "model/Labeling.tcc" +#include "model/Labeler.tcc" namespace tops { namespace model { @@ -53,6 +54,8 @@ class DecodableModel : public virtual ProbabilisticModel { const Labeling &sequence, bool cached = false) = 0; virtual GeneratorPtr labelingGenerator() = 0; + virtual LabelerPtr labeler(const Standard &s, + bool cached = false) = 0; }; } // namespace model diff --git a/include/model/DecodableModelCrtp.tcc b/include/model/DecodableModelCrtp.tcc index 03524922..257e58fd 100644 --- a/include/model/DecodableModelCrtp.tcc +++ b/include/model/DecodableModelCrtp.tcc @@ -103,7 +103,7 @@ class DecodableModelCrtp GeneratorPtr labelingGenerator() override; LabelerPtr labeler(const Standard &s, - bool cached = false); + bool cached = false) override; // Purely virtual methods virtual void initializeCache(CEPtr evaluator,