Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A server for IncidentAMR

License

NotificationsYou must be signed in to change notification settings

bact/incidentamr-server

Repository files navigation

A server to test parsing text to Abstract Meaning Representation. All of these are for experimentation purpose. I would like to develop a small meaning representation corpus for incident report in the future.

  • UseAMRLib for AMR parsing, with a Sentence to Graph model fromamrlib-models (AMR is a graph, rather than a tree)
  • UseUvicorn andFastAPI for web server and API framework

Install

  1. Download source
    git clone https://github.com/bact/incidentamr-server.git
  2. Install required libraries
    cd incidentamr-serverpip install -r requirements.txt
  3. Install a model
    • Download anySentence to Graph model fromamrlib-models/releases.
      • For example,model_parse_xfm_bart_large-v0_1_0.tar.gz.
    • Extract the tar.gz file, you will get a directory containing .json and .bin files. Rename that directory tostog.
    • Put thestog directory insideincidentamr-server/incidentamr_server/models directory.

Run

  1. Start the server. From insideincidentamr_server directory, run:

    uvicorn main:app --reload
  2. Then, from within a web browser, openhttp://127.0.0.1:8000.

    The web interface will look like this:

    IncidentAMR web interface

Meaning Representations

The main paper for Abstract Meaning Representatio (AMR) is

  • Banarescu, Laura, Claire Bonial, Shu Cai, Madalina Georgescu, Kira Griffitt, Ulf Hermjakob, Kevin Knight, Philipp Koehn, Martha Palmer, and Nathan Schneider. 2013.‘Abstract Meaning Representation for Sembanking’. In Proceedings of the 7th Linguistic Annotation Workshop and Interoperability with Discourse, 9. Sofia, Bulgaria: Association for Computational Linguistics.https://aclanthology.org/W13-2322.pdf.

More information about AMR can be found atAMR Bank website.

Another interesting development is Uniform Meaning Representation (UMR). Their main paper is

  • Van Gysel, Jens E. L., Meagan Vigus, Jayeol Chun, Kenneth Lai, Sarah Moeller, Jiarui Yao, Tim O’Gorman, et al. 2021.‘Designing a Uniform Meaning Representation for Natural Language Processing’. KI - Künstliche Intelligenz 35 (3): 343–60.https://doi.org/10.1007/s13218-021-00722-w.

More information about UMR can be found atUMR Project.

*U in UMR in this meaning representation area can be many things: Unified, Uniform, Universal, etc.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp