Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-08-01 00:49:38 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-08-01 00:49:38 +0400
commitdd4cf4523b38790cc0af1c5ac0f955f2112c18f4 (patch)
tree6dab46a24acd89e87de2aedd7fb1f900eda5031f /phrase-extract
parent3b65a8c62612652df6d4c36482b5de81db5ae8f5 (diff)
get rid of threading
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/extract-rules.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/phrase-extract/extract-rules.cpp b/phrase-extract/extract-rules.cpp
index b8cadea26..4f6b5b436 100644
--- a/phrase-extract/extract-rules.cpp
+++ b/phrase-extract/extract-rules.cpp
@@ -60,8 +60,8 @@ class ExtractTask
private:
SentenceAlignmentWithSyntax &m_sentence;
const RuleExtractionOptions &m_options;
- Moses::OutputFileStream& m_extractCollector;
- Moses::OutputFileStream& m_extractCollectorInv;
+ Moses::OutputFileStream& m_extractFile;
+ Moses::OutputFileStream& m_extractFileInv;
vector< ExtractedRule > m_extractedRules;
@@ -95,11 +95,11 @@ private:
}
public:
- ExtractTask(SentenceAlignmentWithSyntax &sentence, const RuleExtractionOptions &options, Moses::OutputFileStream &extractCollector, Moses::OutputFileStream &extractCollectorInv):
+ ExtractTask(SentenceAlignmentWithSyntax &sentence, const RuleExtractionOptions &options, Moses::OutputFileStream &extractFile, Moses::OutputFileStream &extractFileInv):
m_sentence(sentence),
m_options(options),
- m_extractCollector(extractCollector),
- m_extractCollectorInv(extractCollectorInv) {}
+ m_extractFile(extractFile),
+ m_extractFileInv(extractFileInv) {}
void Run();
};
@@ -976,8 +976,8 @@ void ExtractTask::writeRulesToFile()
<< rule->count << "\n";
}
}
- m_extractCollector << out.str() << endl;
- m_extractCollectorInv << outInv.str() << endl;
+ m_extractFile << out.str();
+ m_extractFileInv << outInv.str();
}
void writeGlueGrammar( const string & fileName, RuleExtractionOptions &options, set< string > &targetLabelCollection, map< string, int > &targetTopLabelCollection )