Universe

amrlib

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

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

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 label on the issue tracker.

Read the docsJSON source