penman icon indicating copy to clipboard operation
penman copied to clipboard

processing :: in the meta-data

Open jheinecke opened this issue 6 months ago • 5 comments

AMR files usually start with an id and the sentence before the actual PENMAN graph comes

# ::id any-ID-001.1
# ::snt the cat is sleeping
# ::save-date Sat Jul 20, 2024 ::file test_0001_2.txt
( s / cleep-01
   :ARG0 ( c / cat))

the penman lib parses this without any problem and provides it in the metadata dictionary. Multiple ::keys are parsed correctly

However I cam across sentences which contain ::

# ::snt this must be separated  using :: unless it is a single line
...

unfortunately penman-lib cuts the sentence at the :: and creates a metadata-entry with a space as key. For other comment lines having mulitple keys is OK, but for the line containing ::snt is forbids having sentences with ::. Could this be changed?

jheinecke avatar Aug 05 '24 10:08 jheinecke