Commit Graph

1091 Commits

Author SHA1 Message Date
Jeroen Vermeulen
6a4943ca41 Replace deprecated bcopy() with memcpy().
The bcopy() function is POSIX-specific and deprecated.  The recommended
replacement (at least for non-overlapping source and destination ranges)
is memcpy(), which is in the standard C library.

Note that the source and destination parameters are in a different order
between these two functions.
2015-04-16 19:19:34 +07:00
Jeroen Vermeulen
21a93421dc Replace deprecated bzero() with memset().
The bzero() function is POSIX-specific and deprecated.  The recommended
replacement is memset(), which is in the standard C library.
2015-04-16 19:03:57 +07:00
Hieu Hoang
044968bb4b Merge branch 'master' of github.com:moses-smt/mosesdecoder 2015-04-14 11:30:33 +04:00
Hieu Hoang
7af653ac80 misc script to parallelize madamira on grid engine 2015-04-14 11:29:56 +04:00
Hieu Hoang
2f7c328db9 codelite 2015-04-11 20:21:50 +04:00
Hieu Hoang
0c58e19491 uncomment out lines that clang choked on. Now works 2015-04-02 22:39:44 +04:00
akimbal1
ad70c9a35d resolve conflicts 2015-04-02 14:15:15 -04:00
akimbal1
b4e24a2fb8 compile with clang 3.3 x86_x6, no warnings 2015-04-02 14:07:23 -04:00
Hieu Hoang
d71e516176 make it compile on osx/clang 2015-04-02 21:30:47 +04:00
Hieu Hoang
f0e4f8b557 Merge pull request #103 from aminorex/master
tokenizer improvements, faster better sentence splitter
2015-04-02 09:49:41 +04:00
Jeroen Vermeulen
ebc0930500 Replace use of tmpnam with boost::filesystem.
Silences a few annoying warnings from gcc: "tmpnam is dangerous" (and
the suggestion to use mkstemp instead).
2015-04-02 10:42:06 +07:00
akimbal1
8cea968067 handle asian stock tickers better 2015-04-01 18:49:51 -04:00
akimbal1
6771bf9142 Merge remote-tracking branch 'upstream/master' 2015-04-01 18:30:44 -04:00
akimbal1
d4ef9ce106 make -a work more like the perl tokenizer 2015-04-01 18:26:19 -04:00
akimbal1
2e39e829bf splitter and tokenizer tweaks, multithreading tokenizer 2015-04-01 15:49:32 -04:00
akimbal1
fd596b1972 splitter tweaks 2015-04-01 02:21:03 -04:00
akimbal1
3db8c87c7c add -B option 2015-03-31 22:03:32 -04:00
akimbal1
9aa73eed4f add splitter 2015-03-31 21:53:14 -04:00
Jeroen Vermeulen
4c59b350df Modernize "C" includes in contrib.
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 contrib/ subdirectory.

C++11 adds cstdint, but to support compilation with the previous
standard, that change is left for later.
2015-03-28 20:58:46 +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
Ulrich Germann
b1c9d8a528 Bjam is the most awful build system in the world. 2015-03-20 18:51:49 +00:00
akimbal1
1b9da3bb04 draft splitter 2015-03-19 01:02:18 -04:00
Ulrich Germann
687c7ba0f6 Restored legacy moses server. 2015-03-18 21:04:10 +00:00
Hieu Hoang
1ca4f42539 codelite 2015-03-17 18:08:56 +00:00
Hieu Hoang
63d8b390b4 Changes to RUleScope from private branch. More codelite projects 2015-03-17 11:50:33 +00:00
Hieu Hoang
25feb7e47b option to change the estimated score only, not actuall score 2015-03-17 10:25:34 +00:00
Hieu Hoang
e1a5c1e140 start CodeLite project files 2015-03-16 22:42:21 +00:00
Hieu Hoang
767163c96e start CodeLite project files 2015-03-16 18:14:06 +00:00
Hieu Hoang
2fe8bccd2b remove visual studio and xcode project files. No longer maintained 2015-03-10 16:19:13 +00:00
Hieu Hoang
ee6948b168 eclipse 2015-03-10 16:04:30 +00:00
Hieu Hoang
44d4d94b44 eclipse 2015-03-08 20:26:16 +00:00
Hieu Hoang
62320ef961 eclipse 2015-03-04 20:20:23 +00:00
Ulrich Germann
982286b38f Folded contrib/server/mosesserver.cpp into the moses executable.
With immediate effect, mosesserver is deprecated, use moses --server instead.
2015-03-04 00:07:11 +00:00
Hieu Hoang
0829e5196d path arg /Cheng Yong 2015-02-28 13:59:36 +00:00
Hieu Hoang
c84632a88f eclipse 2015-02-25 13:30:48 +00:00
Hieu Hoang
59986d8c81 change default mac-chart-span 10->20. /Arefeh Kazemi 2015-02-24 12:35:00 +00:00
Hieu Hoang
b223256040 park Joint LM. Doesn't work anymore 2015-02-18 15:11:03 +00:00
akimbal1
915c29b0dd detokenization fixes and features 2015-02-15 17:19:47 -05:00
akimbal1
eff60db207 stop treating dash like hyphen 2015-02-15 00:23:29 -05:00
akimbal1
f307e56273 merge upstream
cking branch 'upstream/master'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-02-14 23:56:41 -05:00
akimbal1
6352dc773c closer match to perl tokenizer 2015-02-14 23:37:44 -05:00
Jeroen Vermeulen
c52931e909 Missing include: boost/foreach.hpp.
Fixes compile error on BOOST_FOREACH.
2015-02-13 17:31:25 +01:00
Ulrich Germann
fa3f82a04d Merge branch 'master' into sampled-lexicalized-reordering 2015-02-13 02:22:37 +00:00
Hieu Hoang
2a424da4b7 minor compile error 2015-02-12 16:30:07 +00:00
Ulrich Germann
31da9e8a01 Adapted for new return type of TranslationOptionCollection::GetTranslationOptionList(). 2015-02-10 01:50:36 +00:00
Hieu Hoang
65f94e615b check args for KENLM 2015-02-06 11:53:25 +00:00
Hieu Hoang
70e8eb54ce Using boost for prefix/suffix checks /Jeroen Vermeulen 2015-02-05 16:23:47 +00:00
Hieu Hoang
6bfdddfe49 eclipse 2015-02-03 10:26:51 +00:00
akimbal1
362e6a9374 remove spurious endl 2015-02-02 15:57:04 -05:00
akimbal1
8ea1c9fd40 alignment for hieu 2015-02-02 12:55:21 -05:00