to_conll¶
-
semstr.convert.
to_conll
(passage, test=False, tree=False, preprocess=True, **kwargs)[source]¶ Convert from a Passage object to a string in CoNLL-X format (conll)
Parameters: - passage – the Passage object to convert
- test – whether to omit the head and deprel columns. Defaults to False
- tree – whether to omit rows for non-primary parents. Defaults to False
- preprocess – preprocess the converted dependency graph before returning it?
:return list of lines representing the dependencies in the passage