mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 03:33:37 +03:00
zipped output file
This commit is contained in:
parent
283ae161a6
commit
069d24e9f5
@ -247,7 +247,6 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
phraseTableFile->flush();
|
phraseTableFile->flush();
|
||||||
if (phraseTableFile != &cout) {
|
if (phraseTableFile != &cout) {
|
||||||
//(dynamic_cast<ofstream*>(phraseTableFile))->close();
|
|
||||||
delete phraseTableFile;
|
delete phraseTableFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,9 +259,9 @@ int main(int argc, char* argv[])
|
|||||||
void writeCountOfCounts( const char* fileNameCountOfCounts )
|
void writeCountOfCounts( const char* fileNameCountOfCounts )
|
||||||
{
|
{
|
||||||
// open file
|
// open file
|
||||||
ofstream countOfCountsFile;
|
Moses::OutputFileStream countOfCountsFile;
|
||||||
countOfCountsFile.open(fileNameCountOfCounts);
|
bool success = countOfCountsFile.Open(fileNameCountOfCounts);
|
||||||
if (countOfCountsFile.fail()) {
|
if (!success) {
|
||||||
cerr << "ERROR: could not open count-of-counts file "
|
cerr << "ERROR: could not open count-of-counts file "
|
||||||
<< fileNameCountOfCounts << endl;
|
<< fileNameCountOfCounts << endl;
|
||||||
return;
|
return;
|
||||||
@ -275,7 +274,7 @@ void writeCountOfCounts( const char* fileNameCountOfCounts )
|
|||||||
for(int i=1; i<=COC_MAX; i++) {
|
for(int i=1; i<=COC_MAX; i++) {
|
||||||
countOfCountsFile << countOfCounts[ i ] << endl;
|
countOfCountsFile << countOfCounts[ i ] << endl;
|
||||||
}
|
}
|
||||||
countOfCountsFile.close();
|
countOfCountsFile.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
void processPhrasePairs( vector< PhraseAlignment > &phrasePair, ostream &phraseTableFile )
|
void processPhrasePairs( vector< PhraseAlignment > &phrasePair, ostream &phraseTableFile )
|
||||||
|
Loading…
Reference in New Issue
Block a user