vendor/tomotopy/src/Labeling/Labeler.h in tomoto-0.1.3 vs vendor/tomotopy/src/Labeling/Labeler.h in tomoto-0.1.4

- old
+ new

@@ -8,35 +8,37 @@ namespace label { struct Candidate { float score = 0; + size_t cf = 0, df = 0; std::vector<Vid> w; std::string name; Candidate() { } Candidate(float _score, Vid w1) - : w{ w1 }, score{ _score } + : score{ _score }, w{ w1 } { } Candidate(float _score, Vid w1, Vid w2) - : w{ w1, w2 }, score{ _score } + : score{ _score }, w{ w1, w2 } { } Candidate(float _score, const std::vector<Vid>& _w) - : w{ _w }, score{ _score } + : score{ _score }, w{ _w } { } }; class IExtractor { public: + virtual std::vector<Candidate> extract(const ITopicModel* tm) const = 0; virtual ~IExtractor() {} }; class ILabeler \ No newline at end of file