to_amr¶
-
semstr.convert.
to_amr
(passage, metadata=True, wikification=True, use_original=True, verbose=False, default_label=None, **kwargs)[source]¶ Convert from a Passage object to a string in AMR PENMAN format (export)
Parameters: - passage – the Passage object to convert
- metadata – whether to print ::id and ::tok lines
- wikification – whether to wikify named concepts, adding a :wiki triple
- use_original – whether to use original AMR text from passage.extra
- verbose – whether to print extra information
- default_label – label to use in case node has no label attribute
:return list of lines representing an AMR in PENMAN format, constructed from the passage