from_sdp¶
-
semstr.convert.
from_sdp
(lines, passage_id, mark_aux=False, return_original=False, dep=False, preprocess=True, **kwargs)[source]¶ Converts from parsed text in SemEval 2015 SDP format to a Passage object.
Parameters: - lines – iterable of lines in SDP format, describing a single passage.
- passage_id – ID to set for passage
- mark_aux – add a preceding # for labels of auxiliary edges added
- return_original – return triple of (UCCA passage, SDP string, sentence ID)
- dep – return dependency graph rather than converted UCCA passage
- preprocess – preprocess the dependency graph before converting to UCCA (or returning it)?
:return generator of Passage objects