mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
variable number of translation component scores
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@20 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
5edb3bb269
commit
b9f8b5d437
@ -37,6 +37,16 @@ public:
|
||||
return *iter->second;
|
||||
}
|
||||
|
||||
~TransScoreComponentCollection()
|
||||
{ // ??? memory leak but double free
|
||||
/* TransScoreComponentCollection::iterator iter;
|
||||
for (iter = begin() ; iter != end() ; ++iter)
|
||||
{
|
||||
delete iter->second;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
const TransScoreComponent &GetTransScoreComponent(const PhraseDictionary *phraseDictionary) const
|
||||
{
|
||||
return const_cast<TransScoreComponentCollection*>(this)->GetTransScoreComponent(phraseDictionary);
|
||||
|
Loading…
Reference in New Issue
Block a user