AMR icon indicating copy to clipboard operation
AMR copied to clipboard

Wiki links of form "X_(Y)"

Open kovvalsky opened this issue 7 years ago • 1 comments

Wiki links of the for X_(Y) are printed as X_ (Y), with an unwanted extra space.

For example: produced vs gold

(vv314vote-01 / vote-01 
	:ARG0 (vv314he / he) 
	:ARG1 (vv314bill / bill 
		:mod (vv314political-party / political-party :wiki "Democratic_Party_ (United_States) " 
			:name (v3141 / name :op1 "Dem")) 
		:quant (vv314several / several)) 
	:mod (vv314even / even))
# ::id DF-199-193694-586_5859.15 ::date 2013-08-29T08:01:13 ::annotator SDL-AMR-09 ::preferred
# ::snt He even voted for several Dem bills.
# ::save-date Mon Sep 16, 2013 ::file DF-199-193694-586_5859_15.txt
(v / vote-01
      :ARG0 (h / he)
      :ARG1 (b / bill
            :quant (s / several)
            :mod (p / political-party :wiki "Democratic_Party_(United_States)"
                  :name (n2 / name :op1 "Democratic" :op2 "Party")))
      :mod (e / even))

kovvalsky avatar Mar 05 '18 14:03 kovvalsky

Sorry for the late reply. This issue went unnoticed because I usually remove Wiki links before processing, and then restore them later (as is common for a lot of AMR parsers). However, the issue should be fixed for the updated repo.

RikVN avatar Nov 29 '19 16:11 RikVN