diff options
author | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-08-09 01:36:36 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-08-09 01:36:36 -0400 |
commit | b6474b5cdbf870725371b32670c9dc28671e394c (patch) | |
tree | f52dde8c7aec577e5ba92bc1375845b4846bbc65 /decoder/hg_intersect.cc | |
parent | 454ef7fd3a37a7d3105d6bf0f5750047979da2d4 (diff) |
fixes for new word api
Diffstat (limited to 'decoder/hg_intersect.cc')
-rw-r--r-- | decoder/hg_intersect.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/hg_intersect.cc b/decoder/hg_intersect.cc index 6e3bfee6..e9a91061 100644 --- a/decoder/hg_intersect.cc +++ b/decoder/hg_intersect.cc @@ -101,7 +101,7 @@ bool HG::Intersect(const Lattice& target, Hypergraph* hg) { // grammar, create the labels here const string kSEP = "_"; for (unsigned i = 0; i < nnodes; ++i) { - const char* pstr = "CAT"; + string pstr = "CAT"; if (hg->nodes_[i].cat_ < 0) pstr = TD::Convert(-hg->nodes_[i].cat_); cats[i] = TD::Convert(pstr + kSEP + lexical_cast<string>(i)) * -1; |