Send Moses-support mailing list submissions to
moses-support@mit.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu
You can reach the person managing the list at
moses-support-owner@mit.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."
Today's Topics:
1. Test fails to build: lm/builder/corpus_count_test.cc
(Jeroen Vermeulen)
2. Re: Test fails to build: lm/builder/corpus_count_test.cc
(Kenneth Heafield)
----------------------------------------------------------------------
Message: 1
Date: Wed, 25 Mar 2015 21:22:44 +0700
From: Jeroen Vermeulen <jtv@precisiontranslationtools.com>
Subject: [Moses-support] Test fails to build:
lm/builder/corpus_count_test.cc
To: moses-support@mit.edu
Message-ID: <5512C4B4.3070800@precisiontranslationtools.com>
Content-Type: text/plain; charset=utf-8
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
------------------------------
Message: 2
Date: Wed, 25 Mar 2015 10:42:29 -0400
From: Kenneth Heafield <moses@kheafield.com>
Subject: Re: [Moses-support] Test fails to build:
lm/builder/corpus_count_test.cc
To: moses-support@mit.edu
Message-ID: <5512C955.4050303@kheafield.com>
Content-Type: text/plain; charset=utf-8
Hi,
Coincidentally, I fixed this upstream 6 days ago:
https://github.com/kpu/kenlm/commits/master . Pushed to Moses.
Kenneth
On 03/25/15 10:22, Jeroen Vermeulen wrote:
> 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
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
------------------------------
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support
End of Moses-support Digest, Vol 101, Issue 71
**********************************************
Subscribe to:
Post Comments (Atom)
0 Response to "Moses-support Digest, Vol 101, Issue 71"
Post a Comment