Giter Site home page Giter Site logo

amr-reader's Introduction

Quickstart

  python amrreader/main.py [-h] [-g GRAPH] [-n] [-p] [-e] [-v VISUALIZATION] indir outdir
  e.g., python amrreader/main.py amrreader/test/test_amr_doc/ output/ -v=n


  positional arguments:
    indir                 directory to AMR input files
    outdir                output directory

  optional arguments:
    -g GRAPH, --graph GRAPH
                          generate AMR graphs -g=n: standard graphs
                                              -g=s: simplified graphs
    -n, --node            generate AMR nodes
    -p, --path            generate AMR paths
    -e, --entity          generate named entities
    -v VISUALIZATION, --visualization VISUALIZATION
                          generate html visualization -v=n: standard graphs
                                                      -v=s: simplified graphs
  • Ptyhon3
  • Your input should be raw AMR format (see amr-reader/tests/test_amr_doc/test).
  • If you would like to use AMR visualization functionality, please install PyGraphviz first.

Example

  # ::snt I am cautiously anticipating the GOP nominee in 2012 not to be Mitt Romney.

  (a / anticipate-01
  :ARG0 (i / i)
  :ARG1 (n / nominate-01 :polarity -
        :ARG0 (p2 / political-party 
                    :wiki "Republican_Party_(United_States)" 
                    :name (n3 / name :op1 "GOP"))
        :ARG1 (p / person
              :wiki "Mitt_Romney" 
              :name (n2 / name :op1 "Mitt" :op2 "Romney"))
        :time (d / date-entity :year 2012)))

Visualization:

  Green Ellispe: concept
  Orange Ellispe: predict with sense
  Black Ellispe: constant
  Blue Rectangle: named entity

alt tag

Citation

If you would like to cite this work, please cite the following publication:
Unsupervised Entity Linking with Abstract Meaning Representation.

Demo

AMR based Entity Linker

API

AMR based Entity Linker

amr-reader's People

Contributors

panx27 avatar

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.