def __init__(self, out_dir):
     """Initializes the callback. The training sentences are written to
     C{outs}.
     @param outs the output stream to write the data to."""
     if not ensure_dir(out_dir):
         raise ValueError
     DefaultConllCallback.__init__(self)
     self._sent = SentenceData()
     self._out_dir = out_dir
     self._title = []
     self._cat = None
     self._gold_map = {}
 def __init__(self, out_dir):
     """@param out_dir the directory the output files will be put."""
     if not ensure_dir(out_dir):
         raise ValueError
     DefaultConllCallback.__init__(self)
     self._out_dir = out_dir