mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-05 15:58:03 +03:00
daily automatic beautifier
This commit is contained in:
parent
de009c1fca
commit
54c2eae4b4
@ -34,13 +34,13 @@ namespace Moses2
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
LexicalReordering::LexicalReordering(size_t startInd, const std::string &line)
|
||||
: StatefulFeatureFunction(startInd, line)
|
||||
, m_blank(NULL)
|
||||
, m_propertyInd(-1)
|
||||
, m_coll(NULL)
|
||||
, m_configuration(NULL)
|
||||
: StatefulFeatureFunction(startInd, line)
|
||||
, m_blank(NULL)
|
||||
, m_propertyInd(-1)
|
||||
, m_coll(NULL)
|
||||
, m_configuration(NULL)
|
||||
#ifdef HAVE_CMPH
|
||||
, m_compactModel(NULL)
|
||||
, m_compactModel(NULL)
|
||||
#endif
|
||||
{
|
||||
ReadParameters();
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
}
|
||||
|
||||
MemPoolAllocator<T>& operator=(const MemPoolAllocator<T>& allocator) {
|
||||
return *this;
|
||||
return *this;
|
||||
}
|
||||
|
||||
MemPool &m_pool;
|
||||
|
@ -131,7 +131,7 @@ public:
|
||||
if (!m_fixed) {
|
||||
size_t read = 0;
|
||||
#ifdef _WIN32
|
||||
read += _chsize_s(m_file_desc, m_map_size);
|
||||
read += _chsize_s(m_file_desc, m_map_size);
|
||||
#else
|
||||
read += ftruncate(m_file_desc, m_map_size);
|
||||
#endif
|
||||
|
@ -68,7 +68,7 @@ void createProbingPT(const std::string &phrasetable_path,
|
||||
bool log_prob, int max_cache_size, bool scfg)
|
||||
{
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
std::cerr << "Create not implemented for Windows" << std::endl;
|
||||
std::cerr << "Create not implemented for Windows" << std::endl;
|
||||
#else
|
||||
std::cerr << "Starting..." << std::endl;
|
||||
|
||||
|
@ -40,7 +40,7 @@ namespace Moses2
|
||||
|
||||
ThreadPool::ThreadPool(size_t numThreads, int cpuAffinityOffset,
|
||||
int cpuAffinityIncr) :
|
||||
m_stopped(false), m_stopping(false), m_queueLimit(0)
|
||||
m_stopped(false), m_stopping(false), m_queueLimit(0)
|
||||
{
|
||||
//size_t numCPU = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
size_t numCPU = std::thread::hardware_concurrency();
|
||||
|
Loading…
Reference in New Issue
Block a user