to_sdp

semstr.convert.to_sdp(passage, test=False, tree=False, mark_aux=False, preprocess=True, **kwargs)[source]

Convert from a Passage object to a string in SemEval 2015 SDP format (sdp)

Parameters:
  • passage – the Passage object to convert
  • test – whether to omit the top, head, frame, etc. columns. Defaults to False
  • tree – whether to omit columns for non-primary parents. Defaults to False
  • mark_aux – omit edges with labels with a preceding #
  • preprocess – preprocess the converted dependency graph before returning it?

:return list of lines representing the semantic dependencies in the passage