@@ -234,7 +234,7 @@ bool BaseRuleCascade<Arc>::TopRewrite(absl::string_view input,
234234 debug->clear ();
235235 std::vector<Label> labels;
236236 if (!TopRewrite (input, &labels)) return false ;
237- if (!::fst::LabelsToString (labels, output, token_type_)) return false ;
237+ if (!::fst::LabelsToString<Label> (labels, output, token_type_)) return false ;
238238 LabelsToDebugString (*output, labels, debug);
239239 return true ;
240240}
@@ -281,7 +281,7 @@ bool BaseRuleCascade<Arc>::OneTopRewrite(absl::string_view input,
281281 debug->clear ();
282282 std::vector<Label> labels;
283283 if (!OneTopRewrite (input, &labels)) return false ;
284- if (!::fst::LabelsToString (labels, output, token_type_)) return false ;
284+ if (!::fst::LabelsToString<Label> (labels, output, token_type_)) return false ;
285285 LabelsToDebugString (*output, labels, debug);
286286 return true ;
287287}
@@ -332,7 +332,7 @@ bool BaseRuleCascade<Arc>::TopRewrites(absl::string_view input,
332332 for (const auto &labels : labelss) {
333333 output->emplace_back ();
334334 debug->emplace_back ();
335- if (!::fst::LabelsToString (labels, &output->back (), token_type_)) {
335+ if (!::fst::LabelsToString<Label> (labels, &output->back (), token_type_)) {
336336 return false ;
337337 }
338338 LabelsToDebugString (output->back (), labels, &debug->back ());
@@ -394,7 +394,7 @@ bool BaseRuleCascade<Arc>::TopRewrites(absl::string_view input,
394394 for (const auto &labels : labelss) {
395395 output->emplace_back ();
396396 debug->emplace_back ();
397- if (!::fst::LabelsToString (labels, &output->back (), token_type_)) {
397+ if (!::fst::LabelsToString<Label> (labels, &output->back (), token_type_)) {
398398 return false ;
399399 }
400400 LabelsToDebugString (output->back (), labels, &debug->back ());
@@ -455,7 +455,7 @@ bool BaseRuleCascade<Arc>::Rewrites(absl::string_view input,
455455 for (const auto &labels : labelss) {
456456 output->emplace_back ();
457457 debug->emplace_back ();
458- if (!::fst::LabelsToString (labels, &output->back (), token_type_)) {
458+ if (!::fst::LabelsToString<Label> (labels, &output->back (), token_type_)) {
459459 return false ;
460460 }
461461 LabelsToDebugString (output->back (), labels, &debug->back ());
0 commit comments