This may be just something stupid on my part. There are two tests in
lm/builder/. They don't seem to get compiled when I build Moses from
source. At least, I can't find any mention of them in the build output.
When I tried to compile one manually, I hit this error:
«
corpus_count_test.cc: In member function ‘void
lm::builder::{anonymous}::Short::test_method()’:
corpus_count_test.cc:48:119: error: no matching function for call to
‘lm::builder::CorpusCount::CorpusCount(util::FilePiece&, int, uint64_t&,
lm::WordIndex&, std::size_t, lm::WarningAction)’
CorpusCount counter(input_piece, vocab.get(), token_count,
type_count, chain.BlockSize() / chain.EntrySize(), SILENT);
^
corpus_count_test.cc:48:119: note: candidates are:
In file included from corpus_count_test.cc:1:0:
../../lm/builder/corpus_count.hh:33:5: note:
lm::builder::CorpusCount::CorpusCount(util::FilePiece&, int, uint64_t&,
lm::WordIndex&, std::vector<bool>&, const string&, std::size_t,
lm::WarningAction)
CorpusCount(util::FilePiece &from, int vocab_write, uint64_t
&token_count, WordIndex &type_count, std::vector<bool> &prune_words,
const std::string& prune_vocab_filename, std::size_t entries_per_block,
WarningAction disallowed_symbol);
^
../../lm/builder/corpus_count.hh:33:5: note: candidate expects 8
arguments, 6 provided
../../lm/builder/corpus_count.hh:23:7: note:
lm::builder::CorpusCount::CorpusCount(const lm::builder::CorpusCount&)
class CorpusCount {
^
../../lm/builder/corpus_count.hh:23:7: note: candidate expects 1
argument, 6 provided
»
Could it be that the build has been accidentally skipping tests in this
directory?
Jeroen
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support