diff options
Diffstat (limited to 'python/src/mteval.pxd')
-rw-r--r-- | python/src/mteval.pxd | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/src/mteval.pxd b/python/src/mteval.pxd index 27c2808d..c97c4b34 100644 --- a/python/src/mteval.pxd +++ b/python/src/mteval.pxd @@ -38,15 +38,17 @@ cdef extern from "py_scorer.h": string& metric_id, void*, MetricStatsCallback, MetricScoreCallback) cdef extern from "training/candidate_set.h" namespace "training": - cdef cppclass Candidate "const training::Candidate": + cdef cppclass Candidate: vector[WordID] ewords FastSparseVector[weight_t] fmap SufficientStats eval_feats + ctypedef Candidate const_Candidate "const training::Candidate" + cdef cppclass CandidateSet: CandidateSet() unsigned size() - Candidate& operator[](unsigned i) + const_Candidate& operator[](unsigned i) void ReadFromFile(string& file) void WriteToFile(string& file) void AddKBestCandidates(Hypergraph& hg, |