code: def send(self, datum):
          
          try:
              self._p.stdin.write((datum.rstrip() + '\n'))
              self._p.stdin.flush()
          except (IOError, OSError):  # ValueError if file was closed manually
              logging.info(
                  'Attempted to write to a closed process; attempting to reopen'
              )
              self._open()
              self._p.stdin.write((datum.rstrip() + '\n'))
              self._p.stdin.flush()
docs: Send *datum* (e.g. a sentence or MRS) to ACE.
  
          Warning:
            Sending data without reading (e.g., via :meth:`receive`) can
            fill the buffer and cause data to be lost. Use the
            :meth:`interact` method for most data-processing tasks with
            ACE.