Spaces:
Sleeping
Sleeping
abdiharyadi
commited on
Commit
·
02f1163
1
Parent(s):
8e8900c
style: removing metadata after using text-to-AMR
Browse files
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 |
|