Commit Graph

397 Commits

Author SHA1 Message Date
Hieu Hoang
f7839c42d5 beautify 2015-10-18 13:30:02 +01:00
Hieu Hoang
b7d947ebf6 change dynamic to static cast 2015-10-18 12:41:36 +01:00
Hieu Hoang
1f6a787c2a Merge branch 'perf_baseline' of github.com:hieuhoang/mosesdecoder into perf_baseline 2015-10-17 22:25:13 +01:00
Hieu Hoang
563552aea6 clean up states after API change 2015-10-17 20:14:24 +01:00
Hieu Hoang
9209101292 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2015-10-16 19:16:14 +00:00
Hieu Hoang
b6231e8c73 make util::StringStream more like std::stringstream 2015-10-16 19:03:22 +00:00
Hieu Hoang
cfb1ab34c7 use util::StringStream 2015-10-16 19:03:22 +00:00
MosesAdmin
0c3fea4014 daily automatic beautifier 2015-10-16 19:56:22 +01:00
Hieu Hoang
bf676b8aee new FF state API for DALM 2015-10-16 19:54:48 +01:00
Hieu Hoang
786258cb28 beautify 2015-10-16 13:53:33 +01:00
Hieu Hoang
36cab5b788 new FF state API for more FF 2015-10-14 15:21:37 +01:00
Hieu Hoang
1dfbd24c53 use KenLM's own hash and operator== fn 2015-10-14 11:16:37 +01:00
Hieu Hoang
8d69ffdc58 syntax decoding uses unordered set 2015-10-14 11:07:11 +01:00
Hieu Hoang
1d0f7fcf14 redo state API for simple distortion and KenLM. Regression failure with KenLM 2015-10-12 16:11:25 +01:00
Hieu Hoang
b0248f8ad5 add operator==() to FFState. Get ready to use unordered_set in stacks 2015-10-08 18:25:10 +01:00
Hieu Hoang
d3e1af3a8c add operator==() to FFState. Get ready to use unordered_set in stacks 2015-10-08 18:14:52 +01:00
Hieu Hoang
16512ff16f add hash() to FFState. Get ready to use unordered_set in stacks 2015-10-08 17:14:08 +01:00
Rico Sennrich
12439215d0 compile NPLM objects with single precision
(for compatibility with nplm commit 9dea3fe)
2015-08-27 14:15:49 +01:00
MosesAdmin
6bed18f25d daily automatic beautifier 2015-08-26 00:00:42 +01:00
Rico Sennrich
52d2f28dd0 fix non-deterministic bug in RDLM
iterator comparison is unsafe because tree end pointer
may coincide with valid pointer to subtree.
2015-08-25 11:05:04 +01:00
Rico Sennrich
660dcc0bed speed up RDLM through object re-use 2015-08-25 10:58:02 +01:00
MosesAdmin
37d9c18d3b daily automatic beautifier 2015-08-22 00:00:46 +01:00
Rico Sennrich
5d0c692514 speed-up RDLM 2015-08-21 16:14:50 +01:00
Ulrich Germann
e8f010b9af Removed ORLM. 2015-08-17 18:11:04 +01:00
Hieu Hoang
4a3363479e remove namespace pollution from old dynamic suffix array and randlm 2015-08-11 12:44:42 +04:00
Ulrich Germann
d67723fd29 Merge branch 'master' of http://github.com/moses-smt/mosesdecoder into ranked-sampling
Conflicts:
	moses/TargetPhrase.cpp
	moses/TargetPhrase.h
2015-07-28 14:29:49 +01:00
Ulrich Germann
1b654743c3 added switch -fopenmp to compilation of BiLM_NPML.o 2015-07-21 15:30:16 +01:00
Rico Sennrich
bec950cf72 support factors in InternalTree 2015-07-20 10:39:01 +01:00
Rico Sennrich
e85f353898 code simplification by removing language-specific, unused hack. 2015-07-20 10:39:01 +01:00
MosesAdmin
0fe0f78e92 daily automatic beautifier 2015-07-04 00:00:44 +01:00
Nicola Bertoldi
6aa6131b84 introduced flag for the existence of TtaskSptr in TargetPhrase 2015-06-29 09:30:26 +02:00
XapaJIaMnu
ea23c921b3 Make getScore be able to access ttasksptr. Only works with suffix array for now, other people can implement it in their pts 2015-06-25 17:52:55 +01:00
XapaJIaMnu
47a488767e Enable the bias weights to be (re)set by the server. 2015-06-25 13:12:33 +01:00
XapaJIaMnu
aaf8397d6f Make it possible for TranslationTasks to be accessed by the LM 2015-06-23 13:24:42 +01:00
Ulrich Germann
98c976bb1d Bug fix. 2015-05-21 22:17:43 +01:00
Ulrich Germann
812cbb0c8e Added missing #include in OxLM.cpp. 2015-05-21 17:28:09 +01:00
Ulrich Germann
dcb8e5d3e0 Preparation for allowing context-aware decoding. 2015-05-19 02:35:39 +01: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
Jeroen Vermeulen
616b589da3 Fix a bunch of compiler warnings.
Warnings are useful, but only if there are few!
2015-04-29 21:18:51 +07:00
Ulrich Germann
fbf8b1f8b8 Code design debizarrification: Indexes of feature functions into the dense vector of all feature
values are now stored on the feature function instead of in a global map that is a static
member of ScoreComponentCollection.
2015-04-26 16:46:36 +01:00
Jeroen Vermeulen
4647986a12 Include winsock2.h on Windows.
This makes socket code build successfully on Windows.
2015-04-18 00:59:40 +07:00
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
Jeroen Vermeulen
789a2e2bc3 Fix some compile warnings (gcc 4.9.2).
Mostly signed/unsigned comparisons and reordered member
initializations; also a few unused variables.

There are more, but if I chip away at them for a while, who knows, it
may catch on and warnings may eventually become socially stigmatizing.
:)
2015-03-29 18:10:51 +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
ee4e396a4d Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
Rico Sennrich
eab513b635 relational dependency language model 2015-03-18 17:39:45 +00:00
Ulrich Germann
ad805c133b Instances of InputType (and derived classes) now know which TranslationTask (if any) created them.
This is a first step towards providing phrase tables etc. access to context information etc.
associated with specific translation tasks.
2015-03-15 20:38:31 +00:00
Hieu Hoang
afe8b4162e link with openmp for srilm 2015-03-08 21:25:24 +00:00