summaryrefslogtreecommitdiff
path: root/gi
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-08-09 01:36:36 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-08-09 01:36:36 -0400
commit0ec6eab158320dc87054057a5a6aaa3536d2fc91 (patch)
tree7bfebbbeda0e770e0e20b0a28049dd707649f04f /gi
parent8ab7731dc55c55272300eafbde2c085b31f886d7 (diff)
fixes for new word api
Diffstat (limited to 'gi')
-rw-r--r--gi/pf/base_distributions.cc2
-rw-r--r--gi/pf/cfg_wfst_composer.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gi/pf/base_distributions.cc b/gi/pf/base_distributions.cc
index d9761005..57e0bbe1 100644
--- a/gi/pf/base_distributions.cc
+++ b/gi/pf/base_distributions.cc
@@ -37,7 +37,7 @@ TableLookupBase::TableLookupBase(const string& fname) {
} else if (cc == 1) {
x.e_.push_back(cur);
} else if (cc == 2) {
- table[x].logeq(atof(TD::Convert(cur)));
+ table[x].logeq(atof(TD::Convert(cur).c_str()));
++cc;
} else {
if (flag) cerr << endl;
diff --git a/gi/pf/cfg_wfst_composer.cc b/gi/pf/cfg_wfst_composer.cc
index 19c0875d..21d5ec5b 100644
--- a/gi/pf/cfg_wfst_composer.cc
+++ b/gi/pf/cfg_wfst_composer.cc
@@ -410,7 +410,7 @@ class CFG_WFSTComposerImpl {
std::cerr << "TERMINAL SYMBOL: " << TD::Convert(git->first) << endl;
abort();
}
- std::vector<std::pair<const WFSTNode*, TRulePtr> > extensions = r->ExtendInput(atoi(TD::Convert(git->first)));
+ std::vector<std::pair<const WFSTNode*, TRulePtr> > extensions = r->ExtendInput(atoi(TD::Convert(git->first).c_str()));
for (unsigned nsi = 0; nsi < extensions.size(); ++nsi) {
const WFSTNode* next_r = extensions[nsi].first;
const EGrammarNode* next_dot = &git->second;