diff options
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/ExtractedRule.h | 2 | ||||
-rw-r--r-- | phrase-extract/extract-rules-main.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/phrase-extract/ExtractedRule.h b/phrase-extract/ExtractedRule.h index 2eeed1d30..adbde43e8 100644 --- a/phrase-extract/ExtractedRule.h +++ b/phrase-extract/ExtractedRule.h @@ -70,7 +70,7 @@ public: , startS(sS) , endS(eS) , count(0) - , pcfgScore(0.0) + , pcfgScore(0.0) , l2rOrientation(PhraseOrientation::REO_CLASS_UNKNOWN) , r2lOrientation(PhraseOrientation::REO_CLASS_UNKNOWN) { } diff --git a/phrase-extract/extract-rules-main.cpp b/phrase-extract/extract-rules-main.cpp index 3dc3210c0..62dbbbf0e 100644 --- a/phrase-extract/extract-rules-main.cpp +++ b/phrase-extract/extract-rules-main.cpp @@ -1210,7 +1210,8 @@ void collectWordLabelCounts( SentenceAlignmentWithSyntax &sentence ) } } -void writeUnknownWordLabel(const string & fileName) { +void writeUnknownWordLabel(const string & fileName) +{ ofstream outFile; outFile.open(fileName.c_str()); typedef map<string,int>::const_iterator I; @@ -1234,7 +1235,7 @@ void writeUnknownWordLabel(const string & fileName) { outFile.close(); } -void writePhraseOrientationPriors(const string &fileName) +void writePhraseOrientationPriors(const string &fileName) { ofstream outFile; outFile.open(fileName.c_str()); |