Commit Graph

640 Commits

Author SHA1 Message Date
Kenneth Heafield
d6a66d39bd Delete unused code 2015-04-10 09:36:57 -04:00
Jeroen Vermeulen
b8793fb788 Address two TODO notes in mert/evaluator.cpp.
The notes were about two objects which were created on the free store
using "new", then cleaned up using "delete".  May have been a Java
habit; the solution was as simple as creating them on the stack.
2015-04-10 13:25:51 +07:00
Jeroen Vermeulen
8a3ae2fd5c Portability and include fixes.
Add <cstdlib> include for srand()/rand(), and <unistd.h> for open() etc.
Include <unistd.h> on Windows if using MinGW.  Disable MeteorScorer on
Windows, since it doesn't have fork() and pipe().
2015-04-10 12:54:34 +07:00
Barry Haddow
217f389230 Attempt at fixing sparse features for hgmira 2015-04-03 15:46:59 +01: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
536c6e375f Modernize "C" includes in mert.
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 mert/ 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:20:58 +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
mjdenkowski
0714521367 Meteor compatibility with batch MIRA 2015-03-13 17:41:53 -04:00
Hieu Hoang
32de075022 beautify 2015-02-19 12:27:23 +00:00
Christophe SERVAN
90471e22a8 Change Namespace in TER library 2015-02-16 19:46:25 +01:00
Christophe SERVAN
d0ff70decc Change Namespace in TER library 2015-02-16 19:34:41 +01:00
Christophe SERVAN
87a4f19546 Memory leak correction in TER algorithm 2015-02-16 19:02:46 +01:00
Ulrich Germann
8a1c8af7a7 Bug fix to commenting out unused variable. 2015-02-09 23:11:17 +00:00
Ulrich Germann
435b1edea8 Bug fix to commenting out unused variable. 2015-02-09 23:09:40 +00:00
Ulrich Germann
be5799dca3 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Conflicts:
	moses/TranslationOptionCollection.cpp
	moses/TranslationOptionCollectionLattice.cpp
	moses/TranslationOptionCollectionLattice.h
	moses/TranslationOptionList.h
2015-02-06 01:30:00 +00:00
Ulrich Germann
6cb520d1b2 Commented out unused variable to reduce compiler warnings. 2015-02-05 22:18:11 +00:00
Ulrich Germann
9438c8c1f0 Commented out unused variable to reduce compiler warnings. 2015-02-05 22:14:47 +00:00
Ulrich Germann
bafdc3fa70 Commented out unused variable to reduce compiler warnings. 2015-02-05 22:14:12 +00: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
Barry Haddow
e5a91812e9 fix crash in hypergraph mira for hiero 2014-12-17 17:41:29 +00:00
Nicola Bertoldi
e4eb201c52 merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
Paul Guyot
52eced7572 Fix incorrect integer concatenation in error messages 2014-10-14 13:45:50 +00:00
Phil Williams
50e7e129c8 Fix compile error if !(defined(__GLIBCXX__) || defined(__GLIBCPP__)) 2014-10-09 16:23:48 +01:00
Michael Denkowski
44b22ece69 More streaming for kbmira 2014-09-30 14:50:10 -04:00
Rico Sennrich
84ad576750 explicitly set BLEU as default scorer (for return-best-dev)
(evaluator doesn't accept --scconfig without --sctype)
2014-09-24 14:47:58 +01:00
Rico Sennrich
d39cbca0b9 (optionally) use n-best file for evaluator/return-best-dev
this adds support for metrics that rely on alignment / trees
2014-09-22 10:49:20 +01:00
Rico Sennrich
3d00e5dc8c basic support for more metrics with kbmira
metrics need getReferenceLength (for background smoothing) to work with kbmira
2014-09-22 10:49:20 +01:00
Rico Sennrich
6810b225cc calculateScore with float (for smoothing support) 2014-09-22 10:49:20 +01:00
Rico Sennrich
f40bb2c53c HWCM for MERT 2014-09-22 10:49:20 +01:00
Barry Haddow
d44fd8ed57 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2014-09-07 23:20:17 +01:00
Christophe SERVAN
be9b3cb1c6 Bug fix about the TER calculation 2014-08-29 14:46:56 +02:00
Barry Haddow
1f14ba45e6 Ignore # with in edge lists 2014-08-12 11:33:37 +01:00
Barry Haddow
a299bb1943 Fix hypergraph pruning 2014-08-08 13:45:34 +01:00
Barry Haddow
ff188c454a Sparse features trainable with hg mira
(In phrase-based Moses)
2014-08-06 11:38:51 +01:00
Barry Haddow
58a5b9eae3 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2014-08-05 12:31:13 +01:00
Barry Haddow
05455eb0c1 Implement shuffling correctly 2014-08-04 20:51:45 +01:00
Hieu Hoang
0fb8e65fa7 compile error on eclipse 2014-08-01 22:44:35 +01:00
Barry Haddow
e2e07940ae shuffling of hypergraphs 2014-08-01 11:24:00 +01:00
Barry Haddow
2826ccc001 Boost version update, specify filesystem v3
Shout if it breaks your favourite platform!
2014-07-23 17:22:14 +01:00
Barry Haddow
5a45fc71eb Some more debug 2014-07-22 09:24:23 +01:00
Barry Haddow
1d64bfc51e Try to prevent double closure of files 2014-07-21 17:39:45 +01:00
Barry Haddow
bb0a0925b5 fd leak 2014-07-21 14:35:55 +01:00
Barry Haddow
efee2695c3 Merge 08811deb17337356cd8dae9c59c0160590679a35 from joshua 2014-07-21 11:04:43 +01:00
Nicola Bertoldi
20b3e8929e beautify 2014-05-19 15:35:08 +02:00
Nicola Bertoldi
20381cbf89 merged master into dynamic-models and solved conflicts 2014-04-28 19:18:38 +02:00
Hieu Hoang
ee03e0f0e3 meteor scorer requires FDStream. Only gcc 2014-04-03 23:35:04 +01:00
Kenneth Heafield
6bbf437ff7 Surround locks with WITH_THREADS 2014-03-17 07:08:25 -07:00
Michael Denkowski
bb201bbde8 Meteor scoring for Moses MERT 2014-03-06 16:07:01 -05:00
Hieu Hoang
b48f410bee don't check object pointer before deleting /Markus Elfring 2014-02-26 10:43:37 +00:00