Coder Social home page Coder Social logo

amr's People

Contributors

rikvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

amr's Issues

Missing roles, only colons

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 form "X_(Y)"

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))

Error in post-processing

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.

No sample.txt.char.tf file

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.