Learning grammar with a divide-and-concur neural network

01/18/2022
by   Sean Deyo, et al.
0

We implement a divide-and-concur iterative projection approach to context-free grammar inference. Unlike most state-of-the-art models of natural language processing, our method requires a relatively small number of discrete parameters, making the inferred grammar directly interpretable – one can read off from a solution how to construct grammatically valid sentences. Another advantage of our approach is the ability to infer meaningful grammatical rules from just a few sentences, compared to the hundreds of gigabytes of training data many other models employ. We demonstrate several ways of applying our approach: classifying words and inferring a grammar from scratch, taking an existing grammar and refining its categories and rules, and taking an existing grammar and expanding its lexicon as it encounters new words in new data.

READ FULL TEXT
research
06/24/2019

Compound Probabilistic Context-Free Grammars for Grammar Induction

We study a formalization of the grammar induction problem that models se...
research
04/28/2023

A logical word embedding for learning grammar

We introduce the logical grammar emdebbing (LGE), a model inspired by pr...
research
06/14/2021

Grammar Equations

Diagrammatically speaking, grammatical calculi such as pregroups provide...
research
02/11/2013

Toric grammars: a new statistical approach to natural language modeling

We propose a new statistical model for computational linguistics. Rather...
research
06/28/2016

Technical Report: Towards a Universal Code Formatter through Machine Learning

There are many declarative frameworks that allow us to implement code fo...
research
07/30/2021

Extracting Grammars from a Neural Network Parser for Anomaly Detection in Unknown Formats

Reinforcement learning has recently shown promise as a technique for tra...
research
08/31/2016

The Generalized Smallest Grammar Problem

The Smallest Grammar Problem -- the problem of finding the smallest cont...

Please sign up or login with your details

Forgot password? Click here to reset