Marcin Junczys-Dowmunt
7652ab9118
quick fix for out-of-bound alignment points
2015-05-15 09:12:51 +02:00
Jeroen Vermeulen
1364a7d599
Fix typo in mmap call.
...
The case where !m_fixed passed m_map_size to mmap(), but the "else"
clause passed map_size. In replacing mmap() with the portable wrapper,
I accidentally changed that to be m_map_size as well.
Besides fixing that, I'm changing the name of the variable to be more
clearly distinguishable from m_map_size.
2015-05-12 09:58:47 +07:00
Hieu Hoang
cc8c6b7b10
beautify
2015-05-02 11:45:24 +01:00
Jeroen Vermeulen
eca5824100
Remove trailing whitespace in C++ files.
2015-04-30 12:05:11 +07:00
Ulrich Germann
e4f5c69109
One step closer to eliminating the requirement to provide num-features=... in the config file.
...
Some FF (Mmsapt, LexicalReordering, Many single-value FF) provide this number during "registration";
when missing, a default weight vector of uniform 1.0 is automatically generated. This eliminates the
need for the user to figure out what the exact number of features is for each FF, which can get complicated,
e.g. in the case of Mmsapt/PhraseDictionaryBitextSampling.
2015-04-29 20:16:52 +01:00
Jeroen Vermeulen
1e3e445e3f
Use cross-platform mmap() wrapper in CompactPT.
...
The MmapAllocator header made use of sys/mman.h and mmap(), which are
Unix-specific. But util has a wrapper which also works on Windows.
This also fixes the error handling: when mmap() failed, the old code would
return an invalid (but non-NULL!) pointer — leading to a crash. The wrapper
will throw an exception with a helpful error message.
2015-04-17 18:53:46 +07:00
Jeroen Vermeulen
a9c8f44896
Modernize "C" includes in moses.
...
This is one of those little chores in managing a long-lived C++
project: standard C headers like stdio.h and math.h now have their own
place in the C++ standard as resp. cstdio, cmath, and so on. In this
branch the #include names are updated for the moses/ subdirectory; more
branches to follow.
C++11 adds cstdint, but to support compilation with the previous
standard, that change is left for later.
2015-03-28 20:09:03 +07:00
Ulrich Germann
8ca11d941d
1. Lifetime of tasks in ThreadPool is now managed via shared pointers.
...
2. Code cleanup in IOWrapper and a bit elsewhere.
2015-03-21 16:12:52 +00:00
Hieu Hoang
32de075022
beautify
2015-02-19 12:27:23 +00:00
Ulrich Germann
ccf44f39fb
Code cleanup and reorganization. A few classes have been renamed to shorter names.
2015-02-15 01:45:22 +00:00
Hieu Hoang
755bd609f5
Using boost for prefix/suffix checks /Jeroen Vermeulen
2015-02-06 15:52:25 +00:00
Marcin Junczys-Dowmunt
4140756fdf
Add missing chck for empty range while flushing
2015-01-22 22:18:19 +01:00
Marcin Junczys-Dowmunt
7d9013a85b
Work-around for temporary translation option collection size during phrase table binarization
2015-01-19 23:15:08 +01:00
Marcin Junczys-Dowmunt
fbcf2dcb56
Fixed thread-safety
2015-01-19 21:56:04 +01:00
Marcin Junczys-Dowmunt
82c603213a
Thread-safety and constness
2015-01-18 23:58:28 +01:00
Marcin Junczys-Dowmunt
16ffc2c978
Added new VW feature and execption to Simple9
2015-01-18 23:26:32 +01:00
Hieu Hoang
6d61db28fa
use astyle 2.01. It's on Edinburgh server and doesn't screw up enum
2015-01-14 19:21:11 +00:00
Hieu Hoang
05ead45e71
beautify
2015-01-14 11:07:42 +00:00
Hieu Hoang
3b3f11365d
delete UserMessage. Too difficult to police
2015-01-07 10:01:10 +04:00
Nicola Bertoldi
e4eb201c52
merged master into dynamic-models and solved conflicts
2014-12-13 12:52:47 +01:00
XapaJIaMnu
4bea830188
doesn't work
2014-11-13 15:50:05 +00:00
Barry Haddow
091948bff0
Improved debug
2014-09-18 17:03:19 +01:00
Hieu Hoang
97e5a30d3a
compiles with clang on osx
2014-08-25 18:07:42 +01:00
Hieu Hoang
18c1c4a132
method rename
2014-08-08 18:11:30 +01:00
Marcin Junczys-Dowmunt
5c9017c632
Forgot to add SetFeaturesToApply
2014-08-03 19:44:43 +02:00
Marcin Junczys-Dowmunt
ff6ed8cd21
Fixed segfault for features depending on factors not in phrase table (i.e. added by generation models)
2014-08-03 18:03:42 +02:00
Nicola Bertoldi
20381cbf89
merged master into dynamic-models and solved conflicts
2014-04-28 19:18:38 +02:00
Phil Williams
04dbd3c7aa
moses_chart: more efficient scope-3 parsing if sentence length < max-chart-span
2014-03-14 08:49:09 +00:00
Nicola Bertoldi
4b072f2097
merge master into this branch
2014-01-17 14:04:15 +01:00
jiejiang
5f1217d793
merged upstream with origin for mingw
2014-01-15 18:16:56 +00:00
Nicola Bertoldi
e7c1b12848
Merge branch 'master' into dynamic-models
2014-01-15 16:55:39 +01:00
Nicola Bertoldi
e452a13062
beautify
2014-01-15 16:49:57 +01:00
Nicola Bertoldi
47bece6eac
code cleanup; fixings to others' code/test
2014-01-15 16:16:37 +01:00
Rico Sennrich
df30085bbe
pass regtest with C++11 and gcc 4.7
2014-01-15 09:27:20 +00:00
Nicola Bertoldi
50970b2b59
merge master into this branch
2014-01-14 08:50:18 +01:00
Hieu Hoang
fccf2ea43a
get rid of all aborts from decoder
2014-01-13 18:32:22 +00:00
Hieu Hoang
b5558c36b8
get rid of all aborts
2014-01-13 14:37:05 +00:00
phikoehn
25553079d9
bug fix with sparse feature handling depending on word alignment in compact phrase table
2014-01-10 18:34:47 +00:00
phikoehn
073a601eb0
make good use of the new precise timer...
2014-01-03 18:45:31 +00:00
jiejiang
744376b3fb
moses windows build, with some TODO list
2013-12-18 20:15:39 +00:00
Hieu Hoang
f13d0c8244
UTIL_THROW_IF -> UTIL_THROW_IF2
2013-11-22 20:27:46 +00:00
Hieu Hoang
aca78534c4
replace CHECK with UTIL_THROW_IF in Moses
2013-11-20 14:02:38 +00:00
Hieu Hoang
17887a2796
replace nth_element() with macro that execute sort() instead for gcc 4.8.1 & 4.8.2
2013-11-15 10:55:38 +00:00
Hieu Hoang
40eefd0fc5
don't compile compact pt if --with-cmph not specified
2013-10-31 13:16:20 +00:00
Hieu Hoang
ab8402cfe8
remove description argument from feature function constructor. Redundant
2013-10-29 18:20:55 +00:00
Hieu Hoang
31ce9b510e
beautify
2013-09-27 09:35:24 +01:00
=
61dacaa9bd
Moved duplicate struct CompareTargetPhrase to TargetPhraseCollection.{h|cpp}
2013-09-25 00:05:45 +01:00
Hieu Hoang
fe36cbf737
move LexicalReordering to FF directory
2013-08-30 16:28:28 +01:00
Hieu Hoang
83df3629a9
mark GetTargetPhraseCollectionNonCache with LEGACY
2013-08-23 21:08:53 +01:00
Hieu Hoang
74aea53fd5
caching error for compact pt
2013-08-20 16:06:48 +01:00