mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
use util::StringStream
This commit is contained in:
parent
cfb1ab34c7
commit
fbaeccb772
@ -28,13 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
/** main function of the command line version of the decoder **/
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
std::string output;
|
||||
util::StringStream strme2(output);
|
||||
strme2 << StringPiece("JJJJ");
|
||||
strme2 << std::string("kkkk");
|
||||
|
||||
std::cout << output;
|
||||
|
||||
return decoder_main(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -112,12 +112,10 @@ void FeatureFunction::ParseLine(const std::string &line)
|
||||
if (m_description == "") {
|
||||
size_t index = description_counts.count(nameStub);
|
||||
|
||||
ostringstream dstream;
|
||||
dstream << nameStub;
|
||||
dstream << index;
|
||||
string descr = SPrint(nameStub) + SPrint(index);
|
||||
|
||||
description_counts.insert(nameStub);
|
||||
m_description = dstream.str();
|
||||
m_description = descr;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user