to_export

semstr.convert.to_export(passage, test=False, tree=False, **kwargs)[source]

Convert from a Passage object to a string in NeGra export format (export)

Parameters:
  • passage – the Passage object to convert
  • test – whether to omit the edge and parent columns. Defaults to False
  • tree – whether to omit columns for non-primary parents. Defaults to False

:return list of lines representing a (discontinuous) tree structure constructed from the passage