d961388e8df29af67bf60a6269469eff8b84d6a7,examples/serving/nmt_client.py,,main,#,86
Before Change
["My", "name", "is", "John", "."],
["I", "live", "on", "the", "West", "coast", "."]]
print("Input:")
print_batch(batch_tokens)
output_batch_tokens = translate_batch(
stub,
After Change
futures.append(future)
for tokens, future in zip(batch_tokens, futures):
result = parse_translation_result(future.result())
print("{} ||| {}".format(" ".join(tokens), " ".join(result)))
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: OpenNMT/OpenNMT-tf
Commit Name: d961388e8df29af67bf60a6269469eff8b84d6a7
Time: 2017-11-07
Author: guillaumekln@users.noreply.github.com
File Name: examples/serving/nmt_client.py
Class Name:
Method Name: main
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: b92890a9f389909a81e6640d527e29a17ae1922f
Time: 2017-08-03
Author: jonwayne@google.com
File Name: speech/cloud-client/transcribe_async.py
Class Name:
Method Name: transcribe_file
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: b92890a9f389909a81e6640d527e29a17ae1922f
Time: 2017-08-03
Author: jonwayne@google.com
File Name: speech/cloud-client/transcribe_async.py
Class Name:
Method Name: transcribe_gcs