Christian Federmann
af9b02c59b
Added new --with-macports option for using MacPorts on Mac OS X; this falls back to using /opt/local if no /path/to/macports is given and implicitly sets Boost parameters. Also note that this implies "using darwin ;" as compiler.
2012-05-10 09:40:13 +02:00
Christian Federmann
c1cf0faf14
GzFileBuf.h got lost in the last merge ;)
2012-05-09 21:52:59 +02:00
Christian Federmann
a18a5542b4
Fixed compiler warning.
2012-05-09 21:45:26 +02:00
Christian Federmann
0e16d637c3
Fixed merge problem.
2012-05-09 21:45:10 +02:00
Christian Federmann
25f43d13b8
Merged in upstream.
2012-05-09 21:10:52 +02:00
Christian Federmann
d9e77ed5b1
Implicit casting from FILE* to gzFile_s* does not work anymore since gzFile has been changed from void * to gzFile_s * in zlib-1.2.6.
2012-05-09 20:55:55 +02:00
Matous Machacek
440650bd6e
Added support for external unix filters to preprocess sentences in mert and evaluator
2012-05-09 19:21:41 +02:00
Kenneth Heafield
10821a9980
When given a relative install path, interpret it relative to pwd.
2012-05-08 14:42:09 -04:00
Kenneth Heafield
7d247737ed
Fix install-scripts
2012-05-08 14:00:42 -04:00
Kenneth Heafield
30216acaa2
Merge branch 'master' of git@github.com:moses-smt/mosesdecoder
2012-05-07 13:00:11 -04:00
Kenneth Heafield
36f31a017b
Refactor Jamroot to separate Moses high-level and common low-level.
2012-05-07 12:58:34 -04:00
Tetsuo Kiso
0d7b40bf8e
No copying allowed.
...
Check the return values of calloc().
2012-05-08 01:13:31 +09:00
Tetsuo Kiso
3848b4e4a7
Fix memory leak: free allocated memories that were not freed.
2012-05-08 01:01:09 +09:00
Tetsuo Kiso
e854b5ac85
Add const to member functions.
...
Replace define macros with enum.
2012-05-08 00:58:44 +09:00
Tetsuo Kiso
8f8b4693c3
Clean up headers.
2012-05-08 00:03:56 +09:00
Tetsuo Kiso
42e07d23a8
Clean up including headers; delete using namespace std in headers.
2012-05-07 23:41:18 +09:00
Tetsuo Kiso
1c8e2a2eb7
Fix passing arguments by const reference; add error checking.
...
Please check the return values of fopen(), calloc(), and malloc().
2012-05-07 23:26:32 +09:00
Tetsuo Kiso
5be31809af
Use const instead of #define macros if possible.
2012-05-07 23:08:37 +09:00
Tetsuo Kiso
4fcdffc29d
Move/add #pragma once properly.
2012-05-07 22:59:37 +09:00
Tetsuo Kiso
e399131cfa
Fix "-Wreorder".
2012-05-07 21:45:30 +09:00
Kenneth Heafield
265f2207fc
Only add -static to clang on linux
2012-05-06 20:13:19 -04:00
Phil Williams
e877e5c3f2
Merge pull request #13 from tetsuok/fix-warnings
...
Fix warnings: -Wreorder and -Wmismatched-tags.
2012-05-06 07:47:34 -07:00
Kenneth Heafield
12a340f281
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-05-05 17:19:26 -04:00
Kenneth Heafield
e9a6212de1
Stricter dependencies enforced by clang
2012-05-05 17:17:28 -04:00
Tetsuo Kiso
c185672df7
Base class destructors should be virtual.
...
See e.g., http://www.gotw.ca/publications/mill18.htm for details.
2012-05-06 06:11:25 +09:00
Tetsuo Kiso
dbfe766f2c
Fix using directive refers to implicitly-defined namespace 'std'.
2012-05-06 05:27:04 +09:00
Tetsuo Kiso
b6f55f6bec
Fix using namespace "std" before including headers in *.h.
2012-05-06 01:31:04 +09:00
Tetsuo Kiso
3f2cbcc846
Fix a warning of -Woverloaded-virtfual.
...
A function declaration hided virtual functions from a base class.
2012-05-06 01:04:41 +09:00
Tetsuo Kiso
857398dfbd
Fix warnings: -Wreorder and -Wmismatched-tags.
2012-05-05 18:51:12 +09:00
Kenneth Heafield
f8d88920a1
KenLM b1daeaf for clang
2012-05-05 00:55:46 -04:00
Tetsuo Kiso
97cb9d7aaa
Fix compilation errors on clang.
...
Clang does not like default args allowed in template function
definitions. See e.g.,
http://www.mail-archive.com/llvmbugs@cs.uiuc.edu/msg08284.html
2012-05-05 11:49:42 +09:00
Kenneth Heafield
32e5d5e170
Apparently bjam doesn't pass -static to clang
2012-05-04 19:06:03 -04:00
Kenneth Heafield
58252d12c2
FactorFriend is a struct not a class. For clang.
2012-05-04 11:21:25 -04:00
Hieu Hoang
2ceeba8dfc
more comment for irst training wrapper
2012-05-04 11:09:12 +01:00
Oliver Wilson
ad72ae5802
Merge branch 'master' of github.com:moses-smt/mosesdecoder
2012-05-04 11:08:01 +01:00
Oliver Wilson
1aafcce298
Update Jamfile for renamed RandLM libraries.
2012-05-04 11:07:09 +01:00
Tetsuo Kiso
cab81f0e92
Replace string concatenations with File::Spec->catfile().
2012-05-04 15:44:20 +09:00
Tetsuo Kiso
f81729d024
Add whitespaces to mert-moses.pl.
2012-05-04 15:40:50 +09:00
Tetsuo Kiso
7b46a09a38
Add error handling for Mac OS X users who have not installed MegaM.
...
OS X users (including Windows users) who want to run PRO for tuning
normally need to get the MegaM's source code and compile by hand
since Hal Daume III has released the precompiled binaries only for Linux.
2012-05-04 04:04:54 +09:00
Matous Machacek
ce1ca5299d
Merge pull request #12 from moses-smt/prefix-private-cderscorer-member
...
Prefix a private member of mert/CderScorer with "m_".
2012-05-03 09:36:06 -07:00
Tetsuo Kiso
315ef03642
Fix comment.
2012-05-03 08:33:28 +09:00
Tetsuo Kiso
59e5c983c6
Add a global variable to store MegaM's default options for PRO.
2012-05-03 08:29:39 +09:00
Tetsuo Kiso
13e54d5cfa
Slightly improve mert-moses.pl portability; add checking mertdir.
2012-05-03 08:09:20 +09:00
Tetsuo Kiso
8501ff413e
Use warn() instead of print STDERR for debugging and bug reports.
...
Because warn() tells the file/line number as die() does.
2012-05-03 07:22:08 +09:00
Tetsuo Kiso
a494d66fb7
Fix handling default case.
2012-05-03 07:11:24 +09:00
Tetsuo Kiso
fef6a5405a
Create subroutines for set up reference length types and case information.
2012-05-03 06:59:34 +09:00
Tetsuo Kiso
1b634488fe
Prefix a private member of mert/CderScorer with "m_".
2012-05-03 05:38:35 +09:00
Matous Machacek
933f25b3b2
CderScorer compute both CDER and WER metric
2012-05-02 22:03:58 +02:00
phikoehn
0021ef661e
Merge branch 'master' of git://github.com/moses-smt/mosesdecoder
2012-05-02 03:48:13 +01:00
phikoehn
958c447f5e
check if feature info file is not empty before reuse
2012-05-02 03:47:48 +01:00