|
|
@ -78,11 +78,11 @@ std::string PostProcessor::Process(const std::string& str, bool finish) { |
|
|
|
result = ProcessSymbols(str); |
|
|
|
result = ProcessSpace(result); |
|
|
|
// TODO(xcsong): do punctuation if finish == true
|
|
|
|
if (finish == true && opts_.itn) { |
|
|
|
if (nullptr != itn_resource) { |
|
|
|
result = itn_resource->Normalize(result); |
|
|
|
} |
|
|
|
} |
|
|
|
// if (finish == true && opts_.itn) {
|
|
|
|
// if (nullptr != itn_resource) {
|
|
|
|
// result = itn_resource->Normalize(result);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|