class_docstr: Output handler to write translation score along with sentence input and output (tab-delimited).
  
  :param stream: Stream to write translations to (e.g., sys.stdout).
class_docstr_tok: ["Output","handler","to","write","translation","score","along","with","sentence","input","and","output","(","tab-delimited",")",".",":","param","stream",":","Stream","to","write","translations","to","(","e.g.",",","sys.stdout",")","."]
code: def __init__(self, stream):
      self.stream = stream
  
imports: import json
  import sys
  from abc import ABC, abstractmethod
  from itertools import chain
  from typing import Optional
  import sockeye.constants
  from sockeye.utils import smart_open
  from .None import inference
label_desc: Use image node_id 1 to create a new PairWithScoreOutputHandler object from inherited base classes: OutputHandler with example: obj = PairWithScoreOutputHandler(stream)