Exploring Neural Models for Parsing Natural Language into First-Order Logic

02/16/2020
by   Hrituraj Singh, et al.
0

Semantic parsing is the task of obtaining machine-interpretable representations from natural language text. We consider one such formal representation - First-Order Logic (FOL) and explore the capability of neural models in parsing English sentences to FOL. We model FOL parsing as a sequence to sequence mapping task where given a natural language sentence, it is encoded into an intermediate representation using an LSTM followed by a decoder which sequentially generates the predicates in the corresponding FOL formula. We improve the standard encoder-decoder model by introducing a variable alignment mechanism that enables it to align variables across predicates in the predicted FOL. We further show the effectiveness of predicting the category of FOL entity - Unary, Binary, Variables and Scoped Entities, at each decoder step as an auxiliary task on improving the consistency of generated FOL. We perform rigorous evaluations and extensive ablations. We also aim to release our code as well as large scale FOL dataset along with models to aid further research in logic-based parsing and inference in NLP.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/18/2018

Semantic Parsing: Syntactic assurance to target sentence using LSTM Encoder CFG-Decoder

Semantic parsing can be defined as the process of mapping natural langua...
research
03/12/2018

Semantic Parsing Natural Language into SPARQL: Improving Target Language Representation with Neural Attention

Semantic parsing is the process of mapping a natural language sentence i...
research
09/27/2019

Improving Semantic Parsing with Neural Generator-Reranker Architecture

Semantic parsing is the problem of deriving machine interpretable meanin...
research
08/31/2019

A Logic-Driven Framework for Consistency of Neural Models

While neural models show remarkable accuracy on individual predictions, ...
research
02/12/2019

Table2answer: Read the database and answer without SQL

Semantic parsing is the task of mapping natural language to logic form. ...
research
05/17/2022

Measuring Alignment Bias in Neural Seq2Seq Semantic Parsers

Prior to deep learning the semantic parsing community has been intereste...
research
05/01/2019

Context-Dependent Semantic Parsing over Temporally Structured Data

We describe a new semantic parsing setting that allows users to query th...

Please sign up or login with your details

Forgot password? Click here to reset