from_conll¶
-
semstr.convert.
from_conll
(lines, passage_id, return_original=False, dep=False, preprocess=True, **kwargs)[source]¶ Converts from parsed text in CoNLL format to a Passage object.
Parameters: - lines – iterable of lines in CoNLL format, describing a single passage.
- passage_id – ID to set for passage
- return_original – return triple of (UCCA passage, CoNLL 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