Giter Site home page Giter Site logo

amr-ccg-alignment's Introduction

amr-ccg-alignment

A project to align AMRs with CCG syntax.

amr-ccg-alignment's People

Contributors

ablodge avatar

Stargazers

Emma Manning avatar

Watchers

James Cloos avatar Nathan Schneider avatar  avatar

amr-ccg-alignment's Issues

Make JavaScript interface

The javascript interface should:

  • handle html coloring based on span classes (l1, l2, ...; s1, s2, ...)
  • allow users to click a button to switch between viewing lexical and structural alignments

Better workflow for updating prealignments

A minor annoyance is that currently, to adjust an alignment from preprocessing, I have to delete it and create a new one, which is placed last in the list. Then it takes time to go back and find the next prealignment to review. This could be improved by any of the following:

  • A visual indication in the alignment buttons of which are from preprocessing and which I have added
  • Keeping alignment buttons, including the newest ones, sorted by word position rather than newness
  • An option to update an existing alignment directly, rather than removing an adding a new one

Show-All Button

Consider adding an option to show all alignments for an AMR at the same time. Overlapping alignments could have multiple shading: multi-shades css.

Show relevant alignment numbers on hover

When hovering on a word or part of the AMR which is part of one or more existing alignments, it would be helpful if the alignment buttons for those alignments would be darkened. That way when I'm browsing the alignments for a sentence, it is easy to select one for a particular word or AMR node/edge.

CCG categories with coindexed subparts

E.g. control verbs should coindex the subject NP of the complement with the subject of the matrix verb: something like (S\NP.1)/(S[inf]\NP.1) for "want" and (S[inf]\NP.1)/(S[b]\NP.1) for "to" in "I want to eat cake". Is it possible to obtain this information, perhaps using GraphParser?

If so, then we could tell annotators not to align anything coindexed with part of an outer argument: in the example, the semantic relation corresponding to expected subject of the embedded verb would account for the NP.1 argument, so "want" would not align to any of the semantic args of "eat".

Imperatives and vocatives

Today I suggested there could be type conversion rules to turn S[b]\NP into S[imp] for imperatives and NP into S[voc]/S[dcl] for vocatives. But this would make alignment to the AMR difficult, and in retrospect it violates the spirit of CCG which is to bake as much as possible into the lexicon.

What about lexical rules as follows:

  • For every bare verb (including copula "be"), there should be not only an S[b]\NP... type category, but also S[imp]\NP[you]... and subjectless S[imp]...
  • For every complete sentence-producing category (this may include all S except S[ng], S[b], and S[adj]), produce a variant that takes a vocative NP on the left or right: e.g. S[dcl]\NP

Thus:

  • Be yourself! be : S[imp]/NP (subjectless)
  • You be yourself! be : S[imp]\NP[you]/NP
  • John, you be yourself! be : S[imp]\NP\NP[you]/NP
  • Eat dung, Malfoy! eat : S[imp]/NP/NP
  • John, he will not hurt you. will : (S[dcl]\NP\NP)/(S[b]\NP)
  • John, are you crying? are : (S[q]\NP/(S[ng]\NP))/NP
  • Boy, why are you crying? why : S[wq]\NP/S[q]

This all does feel like a hack, though.

Data Upload

Users should be able to upload AMRs and other data.
Planned support for:

  • AMRs
  • Sentences
  • CCG
  • UD

AMR/UD structural alignments

I should make a tool that reads an AMR/UD alignment file and outputs html with the (structural) alignments colored. Extends #1 for alignments between subgraphs.

Alignments Upload/Download

Users should be able to download text file of alignments. Consider supporting uploading partial alignments, for additions/corrections.

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.