Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Libgraphqlparser | 1,023 | 3 months ago | 1 | February 27, 2018 | 37 | mit | C++ | |||
A GraphQL query parser in C++ with C and C++ APIs | ||||||||||
Parsekit | 503 | 14 | 6 years ago | 5 | March 24, 2015 | 16 | apache-2.0 | Objective-C | ||
Objective-C Tokenizer and Parser Generator. Supports Grammars. | ||||||||||
Vscode Antlr4 | 343 | 2 months ago | 35 | mit | ANTLR | |||||
ANTLR4 language support for Visual Studio Code | ||||||||||
Warnings Ng Plugin | 325 | 10 days ago | 11 | mit | Java | |||||
Jenkins Warnings Plugin - Next Generation | ||||||||||
Configurate | 295 | 9 | 22 days ago | 8 | August 17, 2021 | 26 | apache-2.0 | Java | ||
A simple configuration library for Java applications providing a node structure, a variety of formats, and tools for transformation | ||||||||||
Amrlib | 161 | 2 | 5 months ago | 13 | March 08, 2022 | 4 | mit | Python | ||
A python library that makes AMR parsing, generation and visualization simple. | ||||||||||
Ldaptor | 142 | 9 | 1 | 24 days ago | 10 | February 28, 2021 | 40 | mit | Python | |
LDAP server, client and utilities, using Twisted Python | ||||||||||
Clicommandlineparser | 106 | 2 years ago | 19 | mit | C# | |||||
A second-generation parser for the .NET Core command line tools | ||||||||||
Person_generation_spt | 104 | 2 years ago | 7 | Python | ||||||
PyTorch Implementation for Unsupervised Person Image Generation with Semantic Parsing Transformation | ||||||||||
Codegenerationutils | 91 | 53 | 2 | 5 months ago | 13 | August 29, 2022 | 1 | mit | PHP | |
A set of code generator utilities built on top of PHP-Parsers that ease its use when combined with Reflection |
A python library that makes AMR parsing, generation and visualization simple.
For the latest documentation, see ReadTheDocs.
!! Note: The models must be downloaded and installed separately. See the Installation Instructions.
amrlib is a python module designed to make processing for Abstract Meaning Representation (AMR) simple by providing the following functions
Docs
and Spans
to AMR graphs.The system includes different neural-network models for parsing and for generation. !! Note: Models must be downloaded and installed separately. See amrlib-models for all parse and generate model download links.
Parse (StoG) model_parse_xfm_bart_large gives an 83.7 SMATCH score with LDC2020T02.
Generation (GtoS) generate_t5wtense gives a 54 BLEU with tense tags or 44 BLEU with un-tagged LDC2020T02.
The GUI allows for simple viewing, conversion and plotting of AMR Graphs.
The library does not contain code for AMR co-reference resolution but there is a related project at amr_coref.
The following papers have GitHub projects/code that have similar or better scoring than the above..
The project was built and tested under Python 3 and Ubuntu but should run on any Linux, Windows, Mac, etc.. system.
See Installation Instructions for details on setup.
To convert sentences to graphs
import amrlib
stog = amrlib.load_stog_model()
graphs = stog.parse_sents(['This is a test of the system.', 'This is a second sentence.'])
for graph in graphs:
print(graph)
To convert graphs to sentences
import amrlib
gtos = amrlib.load_gtos_model()
sents, _ = gtos.generate(graphs)
for sent in sents:
print(sent)
For a detailed description see the Model API.
To use as an extension, you need spaCy version 2.0 or later. To setup the extension and use it do the following
import amrlib
import spacy
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)
For a detailed description see the Spacy API.
For an example of how to use the library to do paraphrasing, see the Paraphrasing section in the docs.
If you find a bug, please report it on the GitHub issues list. Additionally, if you have feature requests or questions, feel free to post there as well. I'm happy to consider suggestions and Pull Requests to enhance the functionality and usability of the module.