mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
Made a few things in ScoreComponentCollection public.
This commit is contained in:
parent
ead3fc565e
commit
dd40dd8382
@ -1,3 +1,4 @@
|
||||
// -*- c++ -*-
|
||||
// $Id$
|
||||
|
||||
/***********************************************************************
|
||||
@ -93,10 +94,13 @@ class ScoreComponentCollection
|
||||
private:
|
||||
FVector m_scores;
|
||||
|
||||
public:
|
||||
typedef std::pair<size_t,size_t> IndexPair;
|
||||
private:
|
||||
typedef std::map<const FeatureFunction*,IndexPair> ScoreIndexMap;
|
||||
static ScoreIndexMap s_scoreIndexes;
|
||||
static size_t s_denseVectorSize;
|
||||
public:
|
||||
static IndexPair GetIndexes(const FeatureFunction* sp) {
|
||||
ScoreIndexMap::const_iterator indexIter = s_scoreIndexes.find(sp);
|
||||
if (indexIter == s_scoreIndexes.end()) {
|
||||
|
Loading…
Reference in New Issue
Block a user