extract_candidates¶
-
ucca.constructions.
extract_candidates
(passage, constructions=None, reference=None, reference_yield_tags=None, verbose=False)[source]¶ Find candidate edges by constructions in UCCA passage. :param passage: Passage object to find constructions in :param constructions: list of constructions to include or None for all :param reference: Passage object to get POS tags from, and categories for fine-grained scores (default: `passage’) :param reference_yield_tags: yield tags from reference passage for fine-grained evaluation:
dict: set of terminal indices (excluding punctuation) -> list of edges of the Construction whose yield (excluding remotes and punctuation) is that setParameters: verbose – whether to print tagged text Returns: dict of Construction -> list of corresponding Candidates