mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +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()
|
void SearchNormal::Decode()
|
||||||
{
|
{
|
||||||
SentenceStats &stats = m_manager.GetSentenceStats();
|
// SentenceStats &stats = m_manager.GetSentenceStats();
|
||||||
|
|
||||||
// initial seed hypothesis: nothing translated, no words produced
|
// initial seed hypothesis: nothing translated, no words produced
|
||||||
Hypothesis *hypo = Hypothesis::Create(m_manager, m_source, m_initialTransOpt);
|
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)
|
TargetPhrase::TargetPhrase(ttasksptr& ttask, const PhraseDictionary *pt)
|
||||||
:Phrase()
|
:Phrase()
|
||||||
|
, m_ttask(ttask)
|
||||||
|
, m_ttask_flag(true)
|
||||||
, m_fullScore(0.0)
|
, m_fullScore(0.0)
|
||||||
, m_futureScore(0.0)
|
, m_futureScore(0.0)
|
||||||
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||||
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
|
||||||
, m_lhsTarget(NULL)
|
, m_lhsTarget(NULL)
|
||||||
, m_ruleSource(NULL)
|
, m_ruleSource(NULL)
|
||||||
, m_ttask(ttask)
|
|
||||||
, m_ttask_flag(true)
|
|
||||||
, m_container(pt)
|
, m_container(pt)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -30,11 +30,11 @@ namespace MosesServer
|
|||||||
.allowOrigin("*")
|
.allowOrigin("*")
|
||||||
.maxConn(m_server_options.num_threads));
|
.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)
|
if (m_server_options.is_serial)
|
||||||
{
|
{
|
||||||
VERBOSE(1,"Running server in serial mode." << endl);
|
VERBOSE(1,"Running server in serial mode." << std::endl);
|
||||||
while(true) myAbyssServer.runOnce();
|
while(true) myAbyssServer.runOnce();
|
||||||
}
|
}
|
||||||
else myAbyssServer.run();
|
else myAbyssServer.run();
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ namespace MosesServer
|
|||||||
// #pragma message("BUILDING MOSES WITH SERVER SUPPORT")
|
// #pragma message("BUILDING MOSES WITH SERVER SUPPORT")
|
||||||
#else
|
#else
|
||||||
// #pragma message("BUILDING MOSES WITHOUT SERVER SUPPORT")
|
// #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
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user