mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Bug fix: endl => std::endl.
This commit is contained in:
parent
21aa5af640
commit
ac862945bb
@ -81,7 +81,7 @@ ProcessOneStack(HypothesisStack* hstack)
|
||||
*/
|
||||
void SearchNormal::Decode()
|
||||
{
|
||||
SentenceStats &stats = m_manager.GetSentenceStats();
|
||||
// SentenceStats &stats = m_manager.GetSentenceStats();
|
||||
|
||||
// initial seed hypothesis: nothing translated, no words produced
|
||||
Hypothesis *hypo = Hypothesis::Create(m_manager, m_source, m_initialTransOpt);
|
||||
|
@ -82,14 +82,14 @@ TargetPhrase::TargetPhrase(ttasksptr& ttask, std::string out_string, const Phras
|
||||
|
||||
TargetPhrase::TargetPhrase(ttasksptr& ttask, const PhraseDictionary *pt)
|
||||
:Phrase()
|
||||
, m_ttask(ttask)
|
||||
, m_ttask_flag(true)
|
||||
, m_fullScore(0.0)
|
||||
, m_futureScore(0.0)
|
||||
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||
, m_lhsTarget(NULL)
|
||||
, m_ruleSource(NULL)
|
||||
, m_ttask(ttask)
|
||||
, m_ttask_flag(true)
|
||||
, m_container(pt)
|
||||
{
|
||||
}
|
||||
|
@ -30,11 +30,11 @@ namespace MosesServer
|
||||
.allowOrigin("*")
|
||||
.maxConn(m_server_options.num_threads));
|
||||
|
||||
XVERBOSE(1,"Listening on port " << m_server_options.port << endl);
|
||||
XVERBOSE(1,"Listening on port " << m_server_options.port << std::endl);
|
||||
if (m_server_options.is_serial)
|
||||
{
|
||||
VERBOSE(1,"Running server in serial mode." << endl);
|
||||
while(true) myAbyssServer.runOnce();
|
||||
VERBOSE(1,"Running server in serial mode." << std::endl);
|
||||
while(true) myAbyssServer.runOnce();
|
||||
}
|
||||
else myAbyssServer.run();
|
||||
|
||||
@ -42,7 +42,7 @@ namespace MosesServer
|
||||
// #pragma message("BUILDING MOSES WITH SERVER SUPPORT")
|
||||
#else
|
||||
// #pragma message("BUILDING MOSES WITHOUT SERVER SUPPORT")
|
||||
std::cerr << "Moses was compiled without server support." << endl;
|
||||
std::cerr << "Moses was compiled without server support." << std::endl;
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user