redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

static Score::GetZero and Score::GetOne not working with many score types #15

Open kho opened 11 years ago

kho commented 11 years ago

Currently both functions call ScoreCCandidate in SentenceScorer to get a ScoreP smart pointer (which, when non-null, gives access to non-static versions of Score::GetZero or Score::GetOne). However, most actual implementations of SentenceScorer simply return a null ScoreP pointer in ScoreCCandidate.