rikvn / amr Goto Github PK
View Code? Open in Web Editor NEWRepository for all AMR preprocessing and postprocessing scripts
Repository for all AMR preprocessing and postprocessing scripts
Sometimes a produced AMR can have missing role but a colon:
(vv29traitor / traitor
:quant (vv29many / many
:degree (vv29too / too))
: (vv29compatriot / compatriot
:poss (vv29we / we)))
P.S. Despite this smatch is fine to translate them into triples that leads to obscure evaluation. smatch issue
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))
When I run the postprocess_AMRs.py as follows:
python postprocess_AMRs.py -f sample_alignment_input/sample.tf -s sample_alignment_input/sample.sent
I get the following error:
IOError: [Errno 2] No such file or directory: 'sample_alignment_input/sample.tf.restore'
I thought the postprocess file was supposed to create the sample.tf.restore file as well but it looks like it's not doing that. What am I missing here?
Note that here sample.tf
refers to the predicted translation file from the OpenNMT model, and sample.sent
is the actual sentence in English.
Hi,
Thanks for great project. In readme,
python postprocess_AMRs.py -f sample_alignment_input/sample.txt.char.tf -s sample_alignment_input/sample.sent
but there is no sample.txt.char.tf in sample_alignment_input?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.