to_conllu

semstr.convert.to_conllu(passage, test=False, enhanced=True, preprocess=True, **kwargs)[source]

Convert from a Passage object to a string in Universal Dependencies format (conllu)

Parameters:
  • passage – the Passage object to convert
  • test – whether to omit the head and deprel columns. Defaults to False
  • enhanced – whether to include enhanced edges
  • preprocess – preprocess the converted dependency graph before returning it?

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