mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-30 21:39:52 +03:00
remove newline from input
This commit is contained in:
parent
fd631d317f
commit
c316b64d34
@ -9,6 +9,9 @@ print filePath
|
||||
|
||||
with open(filePath) as f:
|
||||
for line in f:
|
||||
#print line
|
||||
line = line[:-1]
|
||||
#print line
|
||||
ws = create_connection("ws://localhost:8080/translate")
|
||||
ws.send(line)
|
||||
result=ws.recv()
|
||||
|
@ -30,6 +30,7 @@ void init(const std::string& options) {
|
||||
|
||||
boost::python::list translate(boost::python::list& in)
|
||||
{
|
||||
cerr << "in=" << boost::python::len(in) << endl;
|
||||
size_t miniSize = god_.Get<size_t>("mini-batch");
|
||||
size_t maxiSize = god_.Get<size_t>("maxi-batch");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user