Age | Commit message (Collapse) | Author |
|
Allow to customize runtime and library destination of install command
|
|
|
|
Avoid linking static libraries to make it easier to compile on anaconda
|
|
Removing unused library -rt
|
|
|
|
|
|
|
|
fix confusing typo in error message
|
|
|
|
Typo in warning
|
|
|
|
|
|
|
|
|
|
Fixes the following problem when using Python 3:
Traceback (most recent call last):
File "/fs/lofn0/dmadl/software/mgiza/mgizapp/bin/merge_alignment.py", line 118, in <module>
main()
File "/fs/lofn0/dmadl/software/mgiza/mgizapp/bin/merge_alignment.py", line 92, in main
"%s%s%s" % (sents[i][0], sents[i][1], sents[i][2]))
UnicodeEncodeError: 'ascii' codec can't encode character '\xdf' in position 213: ordinal not in range(128)
see http://stackoverflow.com/questions/4374455/how-to-set-sys-stdout-encoding-in-python-3
|
|
Looks like MYOptimization was added as an afterthought but never fully
implemented. An array was created to cover all optimization classes
except this one, and then the entry for MYOptimization was initialized
beyond the end.
Since all other code appeared to ignore the entry anyway, I simply
removed the poisonous initialization.
|
|
|
|
Fix for getenv("USER") if not defined
|
|
|
|
|
|
Explicitly specify arguments' types of string::insert calls in model1
|
|
|
|
The zufall() ("coincidence," "random chance") function gets a random double
in the half-open interval [0, 1), and scales it to fall in the half-open
interval [min, max). It asserts that the result is in that interval. But
rounding can throw an occasional spanner in the works, and produce e.g. a
value that's equal to max. When that happens, just throw the dice again.
|
|
Each source file really ought to have some reference to the license.
However I see no practical reason to displace all useful information from
that precious bit of space at the top of each file with lots of legalese.
So let's keep it short.
|
|
Silences a compile warning.
|
|
This word is a C++ keyword as of C++14, so avoid using it.
Also updating some C-style use of “bool”.
|
|
Also, clean up lint.
|
|
This fixes differences between Unix and Windows paths, and makes references
to the user's home directory more portable.
|
|
The codebase was full of repeated patterns for:
1. Representing a nonnegative number as a string.
2. Representing a small nonnegative number as a digit.
3. Functions for representing numbers as string, mostly unused.
This replaces all of them with a single new inline function. In the case
where the output was meant to be one digit, there were cases where actually
the number could overflow, resulting in weird characters. In particular,
these could cause crashes on Windows machines with more than 10 CPU cores.
You'd get a filename with ':' in it, which doesn't work. Such cases are
replaced with zero-padded three-digit strings, to keep sort orders sane.
|
|
|
|
CMake produces a lot of artefacts that we shouldn't have to care about.
Leaving one kind of artefact in place: files named "-MT". We need to fix
the Makefiles so they don't produce this. It's a wrong compiler option,
seemingly passed in a broken attempt to produce dependency files.
|
|
Done using moses-smt's scripts/other/beautify.py (which uses astyle 2.01
with the k&r style).
|
|
This will let us run mosesmt's scripts/other/beautify.py on this directory
as well.
|
|
|
|
Patch from Tom Hoar. Replace slashes and backslashes with whatever the
system's native path separator is. Aids cross-platform usability.
|
|
These are by no means all, just a bunch that were easy to fix. Warnings are
useful, but only if there are few of them!
|
|
This replaces "#include <limits.h>" with "#include <climits>", and so on.
Not a high-value change, but if it makes the code feel more modern and
more pleasant to work with, it'll pay off in the long run.
|
|
In fact on Linux I'm not seeing this function at all. But plain old ctime()
compiles just as well on both Linux and Windows.
|
|
This is the standard path separator for #include. Windows compilers will
accept slashes, but non-Windows compilers generally won't accept backslashes.
(The platform on which the compiler runs is not necessarily the same as the
platform for which code is being compiled.)
|
|
I hope this is the right way to #define HAVE_STRUCT_TIMESPEC. It got things
building on MinGW for me.
|
|
Current versions of C++ require the "typename" keyword when referring to
types dependent on template parameters. But these two instances were hidden
in Windows code where they didn't get noticed.
|
|
compiler (cc/c++) should not be used, must use gcc/g++ instead. Compiles at NYUAD
|
|
|
|
|
|
|
|
|
|
|
|
Install file updated with boost instructions for mac users
|
|
|
|
|