Skip to content

Commit

Permalink
remove old function calls from Timbl.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Jan 2, 2023
1 parent 104e2e6 commit d38aa25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Parser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,8 @@ vector<timbl_result> timbl( Timbl::TimblAPI* tim,
for ( const auto& inst : instances ){
const Timbl::ValueDistribution *db;
const Timbl::TargetValue *tv = tim->Classify( inst, db );
result.push_back( timbl_result( tv->Name(), db->Confidence(tv), db ) );
result.push_back( timbl_result( tv->name_string(),
db->Confidence(tv), db ) );
}
return result;
}
Expand Down
3 changes: 2 additions & 1 deletion src/csidp.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ timbl_result::timbl_result( const string& cls,
{
auto it = vd->begin();
while ( it != vd->end() ){
_dist.push_back( make_pair(it->second->Value()->Name(),it->second->Weight()) );
_dist.push_back( make_pair(it->second->Value()->name_string(),
it->second->Weight()) );
++it;
}
}
Expand Down

0 comments on commit d38aa25

Please sign in to comment.