-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scorer test data. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1646 1f5c12ca-751b-0410-a591-d2e778427230
- Loading branch information
bhaddow
committed
May 14, 2008
1 parent
4af8428
commit b672d9f
Showing
8 changed files
with
12,080 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "BleuScorer.h" | ||
|
||
/** | ||
Implementation of bleu scoring for use in mert | ||
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef __BLEU_SCORER_H__ | ||
#define __BLEU_SCORER_H__ | ||
|
||
#include "Scorer.h" | ||
|
||
#endif //__BLEU_SCORER_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <iostream> | ||
#include <vector> | ||
|
||
#include "ScoreData.h" | ||
#include "BleuScorer.h" | ||
|
||
using namespace std; | ||
|
||
int main(int argc, char** argv) { | ||
cout << "Testing the scorer" << endl; | ||
//BleuScorer bs("test-scorer-data/cppstats.feats.opt");; | ||
vector<string> references; | ||
references.push_back("test_scorer_data/reference.txt"); | ||
//bs.prepare(references, "test-scorer-data/nbest.out"); | ||
Scorer scorer("test"); | ||
ScoreData sd(scorer); | ||
sd.loadnbest("test_scorer_data/nbest.out"); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.