From 2b0ba6ca2e27b68b9358d350deff7645d3d2e324 Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 20 Jul 2010 00:18:07 +0000 Subject: tests compile git-svn-id: https://ws10smt.googlecode.com/svn/trunk@332 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/lo_test.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'vest/lo_test.cc') diff --git a/vest/lo_test.cc b/vest/lo_test.cc index 5b0ba3cd..577113bb 100644 --- a/vest/lo_test.cc +++ b/vest/lo_test.cc @@ -98,7 +98,7 @@ TEST_F(OptTest,TestViterbiEnvelopeInside) { } } -TEST_F(OptTest, TestS1) { +TEST_F(OptTest, TestS1) { int fPhraseModel_0 = FD::Convert("PhraseModel_0"); int fPhraseModel_1 = FD::Convert("PhraseModel_1"); int fPhraseModel_2 = FD::Convert("PhraseModel_2"); @@ -141,10 +141,10 @@ TEST_F(OptTest, TestS1) { TD::ConvertSentence(ref32, &refs2[2]); TD::ConvertSentence(ref42, &refs2[3]); ScoreType type = ScoreTypeFromString("ibm_bleu"); - SentenceScorer* scorer1 = SentenceScorer::CreateSentenceScorer(type, refs1); - SentenceScorer* scorer2 = SentenceScorer::CreateSentenceScorer(type, refs2); + ScorerP scorer1 = SentenceScorer::CreateSentenceScorer(type, refs1); + ScorerP scorer2 = SentenceScorer::CreateSentenceScorer(type, refs2); vector envs(2); - + RandomNumberGenerator rng; vector > axes; // directions to search @@ -190,8 +190,6 @@ TEST_F(OptTest, TestS1) { ViterbiESentence(hg2, &t2); cerr << TD::GetString(t1) << endl; cerr << TD::GetString(t2) << endl; - delete scorer1; - delete scorer2; } int main(int argc, char **argv) { -- cgit v1.2.3