Using Left-corner Parsing to Encode Universal Structural Constraints in Grammar Induction

Similar documents
Enhancing Unlexicalized Parsing Performance using a Wide Coverage Lexicon, Fuzzy Tag-set Mapping, and EM-HMM-based Lexical Probabilities

Ensemble Technique Utilization for Indonesian Dependency Parser

Grammars & Parsing, Part 1:

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1

The Internet as a Normative Corpus: Grammar Checking with a Search Engine

Semi-supervised methods of text processing, and an application to medical concept extraction. Yacine Jernite Text-as-Data series September 17.

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

Chunk Parsing for Base Noun Phrases using Regular Expressions. Let s first let the variable s0 be the sentence tree of the first sentence.

Linking Task: Identifying authors and book titles in verbose queries

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

LTAG-spinal and the Treebank

Language Acquisition Fall 2010/Winter Lexical Categories. Afra Alishahi, Heiner Drenhaus

Towards a Machine-Learning Architecture for Lexical Functional Grammar Parsing. Grzegorz Chrupa la

Accurate Unlexicalized Parsing for Modern Hebrew

UNIVERSITY OF OSLO Department of Informatics. Dialog Act Recognition using Dependency Features. Master s thesis. Sindre Wetjen

Introduction to HPSG. Introduction. Historical Overview. The HPSG architecture. Signature. Linguistic Objects. Descriptions.

A Minimalist Approach to Code-Switching. In the field of linguistics, the topic of bilingualism is a broad one. There are many

Using dialogue context to improve parsing performance in dialogue systems

Parsing of part-of-speech tagged Assamese Texts

Chapter 4: Valence & Agreement CSLI Publications

Learning Computational Grammars

Cross-Lingual Dependency Parsing with Universal Dependencies and Predicted PoS Labels

The stages of event extraction

SINGLE DOCUMENT AUTOMATIC TEXT SUMMARIZATION USING TERM FREQUENCY-INVERSE DOCUMENT FREQUENCY (TF-IDF)

EdIt: A Broad-Coverage Grammar Checker Using Pattern Grammar

2/15/13. POS Tagging Problem. Part-of-Speech Tagging. Example English Part-of-Speech Tagsets. More Details of the Problem. Typical Problem Cases

Context Free Grammars. Many slides from Michael Collins

Parsing with Treebank Grammars: Empirical Bounds, Theoretical Models, and the Structure of the Penn Treebank

Proof Theory for Syntacticians

The Smart/Empire TIPSTER IR System

Construction Grammar. University of Jena.

Towards a MWE-driven A* parsing with LTAGs [WG2,WG3]

1/20 idea. We ll spend an extra hour on 1/21. based on assigned readings. so you ll be ready to discuss them in class

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1

The Role of the Head in the Interpretation of English Deverbal Compounds

The Interface between Phrasal and Functional Constraints

CS 598 Natural Language Processing

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

ECE-492 SENIOR ADVANCED DESIGN PROJECT

BANGLA TO ENGLISH TEXT CONVERSION USING OPENNLP TOOLS

A deep architecture for non-projective dependency parsing

Target Language Preposition Selection an Experiment with Transformation-Based Learning and Aligned Bilingual Data

AQUA: An Ontology-Driven Question Answering System

POS tagging of Chinese Buddhist texts using Recurrent Neural Networks

Survey on parsing three dependency representations for English

Refining the Design of a Contracting Finite-State Dependency Parser

Two methods to incorporate local morphosyntactic features in Hindi dependency

Unsupervised Dependency Parsing without Gold Part-of-Speech Tags

Case government vs Case agreement: modelling Modern Greek case attraction phenomena in LFG

Prediction of Maximal Projection for Semantic Role Labeling

Basic Syntax. Doug Arnold We review some basic grammatical ideas and terminology, and look at some common constructions in English.

Adapting Stochastic Output for Rule-Based Semantics

Character Stream Parsing of Mixed-lingual Text

Control and Boundedness

Minding the Source: Automatic Tagging of Reported Speech in Newspaper Articles

Natural Language Processing. George Konidaris

How to analyze visual narratives: A tutorial in Visual Narrative Grammar

(Sub)Gradient Descent

Modeling Attachment Decisions with a Probabilistic Parser: The Case of Head Final Structures

Universiteit Leiden ICT in Business

Lecture 1: Machine Learning Basics

A Graph Based Authorship Identification Approach

Applications of memory-based natural language processing

Developing a TT-MCTAG for German with an RCG-based Parser

Python Machine Learning

Approaches to control phenomena handout Obligatory control and morphological case: Icelandic and Basque

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist

Probabilistic Latent Semantic Analysis

On the Notion Determiner

Compositional Semantics

A Computational Evaluation of Case-Assignment Algorithms

Beyond the Pipeline: Discrete Optimization in NLP

Litterature review of Soft Systems Methodology

Experiments with a Higher-Order Projective Dependency Parser

Lecture 1: Basic Concepts of Machine Learning

Adjectives tell you more about a noun (for example: the red dress ).

University of Waterloo School of Accountancy. AFM 102: Introductory Management Accounting. Fall Term 2004: Section 4

A Framework for Customizable Generation of Hypertext Presentations

BULATS A2 WORDLIST 2

Inleiding Taalkunde. Docent: Paola Monachesi. Blok 4, 2001/ Syntax 2. 2 Phrases and constituent structure 2. 3 A minigrammar of Italian 3

Rule Learning with Negation: Issues Regarding Effectiveness

Second Exam: Natural Language Parsing with Neural Networks

ESSLLI 2010: Resource-light Morpho-syntactic Analysis of Highly

The Discourse Anaphoric Properties of Connectives

Reduce the Failure Rate of the Screwing Process with Six Sigma Approach

An Evaluation of POS Taggers for the CHILDES Corpus

What Can Neural Networks Teach us about Language? Graham Neubig a2-dlearn 11/18/2017

Derivational: Inflectional: In a fit of rage the soldiers attacked them both that week, but lost the fight.

Ch VI- SENTENCE PATTERNS.

Som and Optimality Theory

Learning Structural Correspondences Across Different Linguistic Domains with Synchronous Neural Language Models

Some Principles of Automated Natural Language Information Extraction

Rule Learning With Negation: Issues Regarding Effectiveness

Machine Learning and Data Mining. Ensembles of Learners. Prof. Alexander Ihler

Interactive Corpus Annotation of Anaphor Using NLP Algorithms

Unit 8 Pronoun References

An Interactive Intelligent Language Tutor Over The Internet

Three New Probabilistic Models. Jason M. Eisner. CIS Department, University of Pennsylvania. 200 S. 33rd St., Philadelphia, PA , USA

Transcription:

Using Left-corner Parsing to Encode Universal Structural Constraints in Grammar Induction Hiroshi Noji Yusuke Miyao Mark Johnson Nara Institute of Science and Technology National Institute of Informatics Macquarie University 1

Grammar induction is difficult Task: finding syntactic patterns without treebanks (supervision) We need a good prior, or constraints, to the grammars Such constraints should be universal (language independent) Central question in this work: Which constraint should we impose for better grammar induction across languages? 2

Previous work Many works incorporated shorter dependency length bias Many dependency arcs are short There are rumors about preparation by slum dwellers Popular way is via initialization of EM (Klein and Manning, 2004) used in most later approaches (Cohen and Smith (2009); Blunsom and Cohn (2010); Berg-kirkpatric et al. (2010); etc) Other work directly parameterizes length component e.g., Smith and Eisner (2005); Mareček and Žabokrtský (2012) 3

This work We explore the utility of center-embedding avoidance in languages Languages tend to avoid nested, or center-embedded structures because it is difficult to comprehend for human ex: The reporter who the senator who Mary met attacked ignored the president Intuition to our approach Our model tries to learn grammars with less center-embedding This is possible by formulating models on left-corner parsing 4

Contributions Learning method to avoid deeper center-embedding We detect center-embedded derivations in a chart efficiently using left-corner parsing Application to dependency grammar induction We focus on dependency grammar induction since it is the most widely studied task Experiments on many languages in Universal Dependencies We find that our approach shows different tendencies than the dependency length-based constraints We give an analysis of this difference to characterize our approach 5

Approach and Model 6

Approach overview We assume a base generative model for dependency trees p ( a dog barks ) = 0.023 base We constraint the model by multiplying a penalty factor f p(t) = p (t) f(t) base One such f that penalizes center-embedding is: f(t) ={ 0 if t contains degree 2 center-embedding 1 else Smith and Eisner (2005) is the same approach with different f We only add a constraint during learning (EM) Challenge: how to efficiently compute f during EM in a chart? 7

Key tool: left-corner parsing There are several variants in left-corner parsing We use one particular method by Schuler et al. (2010) A parsing algorithm on a stack The stack size grows only when processing center-embedding Stack depth = (degree of center-embedding) + 1 A degree-2 embedded tree A a B C b Following configuration occurs for this tree depth = 3 A C E a B c D c D A C E d a B c D E 8

EM on left-corner parsing Idea: we keep the current stack depth of left-corner parsing in each chart item in inside-outside a A 1 B c C 2 D E F abstracting on a chart i C k 2 F C 2 E 3 A 1 C 2 E 3 D j k a B c D i j When we prohibit degree 2 center-embedding, the above rule is eliminated 9

Applying to dependency grammar induction The technique is quite general, and can be applied to any models on PCFG We apply the technique into DMV (Klein and Manning, 2004) The most popular generative model for grammar induction Since DMV can be formulated as a PCFG, we can apply the idea The time complexity of the naive implementation is O(n^6) due to the need to remember additional index We can improve it to O(n^4) using head-splitting i h j p i h h j p 10

Span-based constraints Motivation: many occurrences of center-embedding are due to embeddings of small chunks, not clauses Example prepared the cat s dinner length = 3 We will try the following constraints in experiments f(t) ={ 0 if t contains embedded chunk of length > δ 1 else This can be done by changing (relaxing) the condition of increasing stack depth 11

Experiments 12

Universal Dependencies (UD) We use UD in our experiments (v. 1.2) Characteristics: all languages are annotated with the content-head style Some settings: Ivan is the best dancer 25 languages in total (remove small treebanks) The inputs are universal POS tags Training sentence length 15 In principle, function words never have a child in a tree Test sentence length 40 13

Evaluation is difficult in grammar induction Issue on previous grammar induction research: The annotation styles of the gold treebank differ across languages (e.g., auxiliary head vs. main verb head) This obscures the contribution of a constraint in each language Our evaluation setting to mitigate this issue: We use UD to best guarantee the consistencies across languages All models take the following additional constraint ={ 0 if a function word has a child on t f(t) 1 else This guarantees that all outputs will follow the UD-style annotation 14

Models (constraints) All models are formulated as p (t) f(t) DMV Only differences between models are f (at training) FUNC: Baseline (function word constraint only) DEPTH: In addition to FUNC, set the maximum stack depth ARCLEN: Equivalent to Smith and Eisner (2005), a soft bias to favor shorter dependency arcs We initialize all models uniformly We found harmonic initialization does not work well 15

UD summary For DEPTH, which maximum stack depth should we use? We use (UD-style) English WSJ as a development set NOTE: English data in UD is not WSJ, but Web treebank The best setting is allowing embedded chunks of length 3 Average scores across 25 languages (UAS) 49 48 47 46 45 48.5 48.1 46.0 FUNC DEPTH ARCLEN DEPTH improves scores but is slightly less effective than ARCLEN 16

Analysis on English Average scores are similar, but is there any characteristics in each constraint? We found an interesting difference in English data (Web) DEPTH : good at detecting constituent boundaries On the next two pictures he took ADP DET ADJ NUM NOUN PRON VERB nuclear power for peaceful purposes ADJ NOUN ADP ADJ NOUN ARCLEN : good at detecting VERB NOUNs, but bad at constituents On the next two pictures he took ADP DET ADJ NUM NOUN PRON VERB nuclear power for peaceful purposes ADJ NOUN ADP ADJ NOUN 17

Bracket scores Hypothesis: DEPTH is better at finding correct constituent boundaries in language than ARCLEN possibly because avoiding center-embedding is essentially a constraint to constituents (?) Quantitative study: We extract unlabelled brackets from gold and output trees and calculate F1 score (( ( )) ) N N V A V English: Average: 30 20 27.9 25.5 30 20 25.6 30.5 27.9 10 14.1 10 0 FUNC DEPTH ARCLEN 0 FUNC DEPTH ARCLEN 18

Adding constraints to the sentence root Results so far suggest DEPTH itself cannot resolve some core dependency arcs, e.g., VERB NOUNs Recent state-of-the-art systems rely on additional constraints, e.g., on root candidates (Bisk and Hockenmaier, 2013; Naseem et al, 2010) We follow this, and add the following constraint in all models The sentence root must be a VERB or a NOUN 19

Average UAS 55 Results with the root constraint 50 45 45.9 50.1 48.2 50.2 40 FUNC DEPTH ARCLEN Naseem et al. (2010) DEPTH works the best when the root constraint is added Competitive with Naseem et al. (2010), which utilizes much richer prior linguistic knowledge on POS tags 20

Conclusion Main result: avoiding center-embedding is a good constraint in grammar induction In particular, it helps to find linguistically correct constituent structures, probably because it is the constraint on constituents Future work: Grammar induction beyond dependency grammars including traditional constituent structure induction, which has been failed due to the lack of good syntactic cues Weakly-supervised grammar induction, e.g., Garrette et al. (2015) Thank you! 21