Made scorer in PScoreLex public for development purposes. Reset default number of workers to 20.

This commit is contained in:
Ulrich Germann 2014-03-10 12:02:05 +00:00
parent f7ee316e12
commit ff4ce426e7

View File

@ -272,8 +272,8 @@ namespace Moses {
class
PScoreLex : public PhraseScorer<Token>
{
LexicalPhraseScorer2<Token> scorer;
public:
LexicalPhraseScorer2<Token> scorer;
PScoreLex() { this->num_feats = 2; }
@ -1213,17 +1213,13 @@ namespace Moses {
sptr<pstats>
Bitext<Token>::
prep2(iter const& phrase, size_t const max_sample) const
{
// boost::lock_guard<boost::mutex>(this->lock);
if (!ag)
{
// boost::lock_guard<boost::mutex>(this->lock);
if (!ag)
{
ag.reset(new agenda(*this));
// ag->add_workers(20);
ag->add_workers(1);
}
// ag->add_workers(1);
ag->add_workers(20);
}
typedef boost::unordered_map<uint64_t,sptr<pstats> > pcache_t;
sptr<pstats> ret;