25
Part 6: Applications of Structure IJCNLP 2017 Tutorial 1 2017-11-27

Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Part 6: Applications of Structure

IJCNLP 2017 Tutorial 12017-11-27

Page 2: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Shallow Learning

Sentence

The final task, e.g., entity relation extraction

2017-11-27 IJCNLP 2017 Tutorial 2

Page 3: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Deep Learning

Sentence

End-to-End

The final task, e.g., entity relation extraction

2017-11-27 IJCNLP 2017 Tutorial 3

Page 4: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

A Question

• Is Parsing or Structure Necessary?-

. 0 4 . 7 / (0 8 . 5

(7 0 B . 7 )90 747 0 7

- 7 A 0 67 5

5- . 5- -2. - - 5-

7 0 7 5

Jiwei Li, Minh-Thang Luong, Dan Jurafsky and Eduard Hovy. When Are Tree Structures Necessary for Deep Learning of Representations? EMNLP, 2015.

2017-11-27 IJCNLP 2017 Tutorial 4

Page 5: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

How to Use Tree or Graph Structures?

• �� �������� �� ������ �� �����• �� ����� ��������• �� ����� ���������• �� �������� ��� � ��

52017-11-27 IJCNLP 2017 Tutorial

Page 6: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

How to Use Tree or Graph Structures?

• �� �������� �� ������ �� �����• �� ����� ��������• �� ����� ���������• �� �������� ��� � ��

62017-11-27 IJCNLP 2017 Tutorial

Page 7: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

As Information Extraction Rules

• For example– Polarity-targetpairextraction

• Problem– Theextractionrulesareverycomplex– Theparsingresultsareinexact

72017-11-27 IJCNLP 2017 Tutorial

Page 8: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

As Information Extraction Rules• Sentencecompression basedPTpairextraction

– Simplifytheextractionrules– Improvetheparsingaccuracy

• Useasequencelabelingmodeltocompresssentences• ThePTpairextractionperformanceimproves3%

8

3 G ) H 5 A ,A A 5 A 1 2 . 1 E )A BC A AC B E (1 E E H - )/ 2C E A A A 1B . 0CA 2017-11-27 IJCNLP 2017 Tutorial

Page 9: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

How to Use Tree or Graph Structures?

• �� �������� �� ������ �� �����• �� ����� ��������• �� ����� ���������• �� �������� ��� � ��

92017-11-27 IJCNLP 2017 Tutorial

Page 10: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Path Features

• ForExample– SemanticRoleLabeling (SRL),RelationExtraction(RC)

• The parsing path features are very important– People <--> downtown: nsubjßmovedà nmod

• But they are difficult to be designed and very sparse

2017-11-27 IJCNLP 2017 Tutorial 10

Page 11: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Path Features

• Use LSTMs to represent paths• All of word, POS tags and relations can be inputted

2017-11-27 IJCNLP 2017 Tutorial 11

Michael Roth and Mirella Lapata. Neural Semantic Role Labeling with Dependency Path Embeddings. ACL 2016.

Page 12: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Joint learning of SRL and RC

• Multi-task learning

12

JiangGuo, WanxiangChe,Haifeng WangandTingLiu. AUnifiedArchitectureforSemanticRoleLabelingandRelationClassification.Coling 2016.2017-11-27 IJCNLP2017Tutorial

Page 13: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Hidden Units of Parsing as Features

• The hidden units for parsing include soft syntactic information• These can help applications, such as relation extraction

2017-11-27 IJCNLP 2017 Tutorial 13

Meishan Zhang, Yue Zhang and Guohong Fu. End-to-End Neural Relation Extraction with Global Optimization.EMNLP 2017.

Relation

Page 14: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

How to Use Tree or Graph Structures?

• �� �������� �� ������ �� �����• �� ����� ��������• �� ����� ���������• �� �������� ��� � ��

142017-11-27 IJCNLP 2017 Tutorial

Page 15: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Recurrent vs. Recursive Neural Networks

• –

• ––

152017-11-27 IJCNLP 2017 Tutorial

Richard Socher, Cliff Chiung-Yu Lin, Andrew Y. Ng and Christopher D. Manning. Parsing Natural Scenes And Natural Language With Recursive Neural Networks. ICML 2011.

Page 16: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Tree-LSTMs• ������ ����

16

• ��������

• Kai Sheng Tai, Richard Socher, and Christopher D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. ACL 2015.

• Xiaodan Zhu, Parinaz Sobihani, and Hongyu Guo. 2015. Long short-term memory over recursivestructures. ICML 2015.

2017-11-27 IJCNLP 2017 Tutorial

Page 17: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Tree-LSTMs

2017-11-27 IJCNLP 2017 Tutorial 17

• Kai Sheng Tai, Richard Socher, and Christopher D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. ACL 2015.

• Xiaodan Zhu, Parinaz Sobihani, and Hongyu Guo. 2015. Long short-term memory over recursivestructures. ICML 2015.

Page 18: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Graph-LSTMs

2017-11-27 IJCNLP 2017 Tutorial 18

Peng, N., Poon, H., Quirk, C., Toutanova, K., & Yih, W. 2017 Apr 5. Cross-Sentence N-ary Relation Extraction with Graph LSTMs. Transactions of the Association for Computational Linguistics.

Page 19: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

NeuralMachineTranslation

2017-11-27 IJCNLP 2017 Tutorial 19

Shuangzhi Wu, Dongdong Zhang, Nan Yang, Mu Li and Ming Zhou. Sequence-to-Dependency Neural Machine Translation. ACL 2017.

Dependency Decoder

Page 20: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

How to Use Tree or Graph Structures?

• �� �������� �� ������ �� �����• �� ����� ��������• �� ����� ���������• �� �������� ��� � ��

202017-11-27 IJCNLP 2017 Tutorial

Page 21: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

EventExtraction

• EventExtractionasDependencyParsing

2017-11-27 IJCNLP 2017 Tutorial 21

DavidMcClosky,MihaiSurdeanu,andChristopherD.Manning. EventExtractionasDependencyParsing. ACL 2011.

Page 22: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Disfluency Detection

• Disfluency detection for speech recognition

• Transition System <O, S, B, A>– output (O):represent thewordsthathavebeenlabeledasfluent– stack (S):representthepartially constructeddisfluencychunk– buffer (B):representthe sentencesthathavenotyetbeenprocessed– action (A):representthe completehistoryofactionstakenbythetransition system

• OUT:whichmovesthefirstwordinthebuffer totheoutputandclearsoutthestack ifitis notempty

• DEL:whichmovesthefirstwordinthebuffer tothestack

2017-11-27 IJCNLP 2017 Tutorial 22

Shaolei Wang,WanxiangChe,YueZhang,Meishan ZhangandTingLiu. Transition-BasedDisfluencyDetectionusingLSTMs. EMNLP 2017.

Page 23: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Disfluency Detection

• An Example of transition-based disfluencydetection

• Results

2017-11-27 IJCNLP 2017 Tutorial 23

Shaolei Wang,WanxiangChe,YueZhang,Meishan ZhangandTingLiu. Transition-BasedDisfluencyDetectionusingLSTMs. EMNLP 2017.

Page 24: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Summary

• �� �������� �� ������ �� �����• �� ����� ��������• �� ����� ���������• �� �������� ��� � ��

2017-11-27 IJCNLP 2017 Tutorial 24

Page 25: Part6:ApplicationsofStructureir.hit.edu.cn/~car/talks/ijcnlp17-tutorial/lec06-Applications.pdfMichaelRothandMirellaLapata.Neural Semantic Role Labeling with Dependency Path Embeddings.ACL2016

Course Summarization

IJCNLP 2017 Tutorial 252017-11-27

• Lexical,SyntacticandSemanticAnalysis– Structured Prediction (Segmentation, Tagging and Parsing)

• Deep Learning– Representation Learning– End-to-end Learning

• Traditional Methods– Graph-based and Transition-based

• Neural Network Methods– Graph-based and Transition-based

• Applications