mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +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
@ -36,6 +36,16 @@ public:
|
||||
assert(iter != end());
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user