abdiharyadi commited on
Commit
02f1163
·
1 Parent(s): 8e8900c

style: removing metadata after using text-to-AMR

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -23,6 +23,7 @@ t2a = TextToAMR(model_name=amr_parsing_model_name)
23
 
24
  def run(text, source_style):
25
  source_amr, *_ = t2a([text])
 
26
  source_amr_display = penman.encode(source_amr)
27
  yield source_amr_display, "...", "...", "...", "..."
28
 
 
23
 
24
  def run(text, source_style):
25
  source_amr, *_ = t2a([text])
26
+ source_amr.metadata = {}
27
  source_amr_display = penman.encode(source_amr)
28
  yield source_amr_display, "...", "...", "...", "..."
29