Commit Graph

16 Commits

Author SHA1 Message Date
Philipp Koehn
77685d7fd9 wrong memory allocation request for document marker 2016-01-31 11:57:11 -05:00
Ulrich Germann
394a26222d Missing variable initialization. 2015-11-10 20:26:57 +00:00
Ulrich Germann
c879cd1d20 Missing variable initialization. 2015-10-25 19:26:48 +00:00
MosesAdmin
c3424ce541 daily automatic beautifier 2015-07-21 00:00:42 +01:00
Philipp Koehn
6d0f482361 extended phrase lookup: print sentences, document id 2015-07-20 11:41:48 -04:00
Phil Williams
90470e878d Fix some C++11-related compilation errors (clang) 2015-06-19 15:58:14 +01:00
Jeroen Vermeulen
eca5824100 Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
Jeroen Vermeulen
b2d821a141 Unify tokenize() into util, and unit-test it.
The duplicate definition works fine in environments where the inline
definition becomes a weak symbol in the object file, but if it gets
generated as a regular definition, the duplicate definition causes link
problems.

In most call sites the return value could easily be made const, which
gives both the reader and the compiler a bit more certainty about the code's
intentions.  In theory this may help performance, but it's mainly for clarity.

The comments are based on reverse-engineering, and the unit tests are based
on the comments.  It's possible that some of what's in there is not essential,
in which case, don't feel bad about changing it!

I left a third identical definition in place, though I updated it with my
changes to avoid creeping divergence, and noted the duplication in a comment.
It would be nice to get rid of this definition as well, but it'd introduce
headers from the main Moses tree into biconcor, which may be against policy.
2015-04-22 09:59:05 +07:00
Jeroen Vermeulen
6fa57a1dac Modernize "C" includes in biconcor.
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 biconcor/ subdirectory.

C++11 adds cstdint, but to support compilation with the previous
standard, that change is left for later.
2015-03-28 21:00:30 +07:00
Hieu Hoang
05ead45e71 beautify 2015-01-14 11:07:42 +00:00
Philipp Koehn
1ed54a6181 add tool for phrase lookup with biconcor 2014-09-21 06:03:51 +01:00
Lane Schwartz
226031ecf6 Checking in examples of CMake files.
The example in contrib works, as does the one in biconcor.

The examples in lm and moses don't work at the moment,
but checking them in anyway as a starting point
for any potential work on them next week during the
MT Marathon.
2013-09-06 13:39:46 -04:00
Hieu Hoang
abe6bb7c22 refactor parsing of feature functiona args 2013-06-10 18:11:55 +01:00
Hieu Hoang
6249432407 beautify 2013-05-29 18:16:15 +01:00
phikoehn
c016b6e04b extended display options for biconcor 2013-04-05 11:26:00 +01:00
Hieu Hoang
417d5ee57b move biconcor to / 2012-05-31 23:32:24 +01:00