Universe

amrlib

A python library that makes AMR parsing, generation and visualization simple.

amrlib on GitHubamrlib on GitHubamrlib on GitHub

amrlib is a python module and spaCy add-in for Abstract Meaning Representation (AMR). The system can parse sentences to AMR graphs or generate text from existing graphs. It includes a GUI for visualization and experimentation.

Example

import spacy import amrlib amrlib.setup_spacy_extension() nlp = spacy.load('en_core_web_sm') doc = nlp('This is a test of the spaCy extension. The test has multiple sentences.') graphs = doc._.to_amr() for graph in graphs: print(graph)
Author info

Brad Jascob

GitHubbjascob/amrlib

Categories pipeline

Found a mistake or something isn't working?

If you've come across a universe project that isn't working or is incompatible with the reported spaCy version, let us know by opening a discussion thread.


Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea section in Discussions.

Read the docsJSON source