lg617 a brief introduction to xle
DESCRIPTION
LG617 A brief introduction to XLE. Kakia Chatsiou [email protected] Dept of Language and Linguistics University of Essex. Outline. About XLE A closer look at XLE Grammar architecture Getting started Inspecting a basic grammar .lfg file XLE interface XLE vs LFG notations - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/1.jpg)
26.02.2009 LG617 - XLE Lab 1
Kakia Chatsiou A brief introduction to XLE
LG617 A brief introduction to XLE
Kakia Chatsiou
[email protected] of Language and Linguistics
University of Essex
![Page 2: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/2.jpg)
26.02.2009 LG617 - XLE Lab 2
Kakia Chatsiou A brief introduction to XLE
Outline
• About XLE• A closer look at XLE
– Grammar architecture– Getting started– Inspecting a basic grammar .lfg file– XLE interface– XLE vs LFG notations
• Hands-on Session • Where is XLE used?
– ParGram Project– Powerset – XLE Web interface
![Page 3: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/3.jpg)
26.02.2009 LG617 - XLE Lab 3
Kakia Chatsiou A brief introduction to XLE
About XLE
• XLE stands for Xerox Linguistics Environment• Under current development at PARC (Palo Alto Research
Center, USA)• A computational environment developed to facilitate the
writing and debugging of Lexical Functional Grammars• C-structure, f-structure, s-structure, and further projections
can be defined • Implemented in C; works in Unix, Linux, MacOS. • Integrates a morphological analyser employing Finite State
Technology• Can be used for both parsing and generation• Includes tools for various grammar development activities
(such as analysing performance, test-suites)
![Page 4: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/4.jpg)
26.02.2009 LG617 - XLE Lab 4
Kakia Chatsiou A brief introduction to XLE
Other Finite State Tools
Tokenizer
Morpholo-gical
AnalyserFST
Lexicon(s)(Hand-written
OrAutomatically
Extracted)
LFG Grammar
(rules, templates)
Grammar Resources(parsing
and generating)
A closer look at XLE :: Basic Grammar Architecture ::
![Page 5: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/5.jpg)
26.02.2009 LG617 - XLE Lab 5
Kakia Chatsiou A brief introduction to XLE
• runs on the unix4 server• can be accessed via a Secure Shell (SSH)
(Start>Network Services>Secure Shell)• We will use the emacs editor to edit the XLE
grammar files (offers syntax colouring and an LFG toolbar for .lfg files)In the SSH command line, type
emacs
• Open a grammar file (Ctrl-x Ctrl-f or File>Open file); they normally have an .lfg extension
A closer look at XLE :: Getting Started ::
![Page 6: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/6.jpg)
26.02.2009 LG617 - XLE Lab 6
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
![Page 7: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/7.jpg)
26.02.2009 LG617 - XLE Lab 7
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Configura-tion
Section
![Page 8: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/8.jpg)
26.02.2009 LG617 - XLE Lab 8
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Rules Section
![Page 9: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/9.jpg)
26.02.2009 LG617 - XLE Lab 9
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
LexiconSection
![Page 10: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/10.jpg)
26.02.2009 LG617 - XLE Lab 10
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Grammar Version ID
![Page 11: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/11.jpg)
26.02.2009 LG617 - XLE Lab 11
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Language ID
![Page 12: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/12.jpg)
26.02.2009 LG617 - XLE Lab 12
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Component ID
![Page 13: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/13.jpg)
26.02.2009 LG617 - XLE Lab 13
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
XLE version
ID
![Page 14: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/14.jpg)
26.02.2009 LG617 - XLE Lab 14
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
4 dashes signal the
end of each
section/ file
![Page 15: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/15.jpg)
26.02.2009 LG617 - XLE Lab 15
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
The default
categorywhen
parsing
![Page 16: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/16.jpg)
26.02.2009 LG617 - XLE Lab 16
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
specification of which lexical entries, and rule are given
precedence(here
precedence is given to
the grammar with version
ID STARTER and language ID LANGUAGE)
![Page 17: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/17.jpg)
26.02.2009 LG617 - XLE Lab 17
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
list of the grammatical
relations which must
be subcategori-sed for in order to
appear in theargument list of the PRED
![Page 18: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/18.jpg)
26.02.2009 LG617 - XLE Lab 18
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
list of attributes
whosevalues
must contain a PRED
![Page 19: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/19.jpg)
26.02.2009 LG617 - XLE Lab 19
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Phrasal category
![Page 20: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/20.jpg)
26.02.2009 LG617 - XLE Lab 20
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Schema / f-structure information
![Page 21: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/21.jpg)
26.02.2009 LG617 - XLE Lab 21
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
![Page 22: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/22.jpg)
26.02.2009 LG617 - XLE Lab 22
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
![Page 23: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/23.jpg)
26.02.2009 LG617 - XLE Lab 23
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: Inspecting a grammar file ::
Morpho-logicalmarker
![Page 24: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/24.jpg)
26.02.2009 LG617 - XLE Lab 24
Kakia Chatsiou A brief introduction to XLE
% create-parser {demo-eng.lfg}
% parse {Mary saw the boys with the telescope}parsing {Mary saw the boys with the telescope}2 solutions, 0.01 CPU seconds, 23 subtrees unified
A closer look at XLE :: XLE interface ::
![Page 25: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/25.jpg)
26.02.2009 LG617 - XLE Lab 25
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: XLE interface ::
% parse {Mary saw the boys with the telescope}parsing {Mary saw the boys with the telescope}2 solutions, 0.01 CPU seconds, 23 subtrees unified
![Page 26: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/26.jpg)
26.02.2009 LG617 - XLE Lab 26
Kakia Chatsiou A brief introduction to XLE
A closer look at XLE :: XLE interface ::
C-structur
e
f-structur
e
Packed representa-tion of f-structures
Representa-tion of logical
choices (in cases of
ambiguity)
% parse {Mary saw the boys with the telescope}parsing {Mary saw the boys with the telescope}2 solutions, 0.01 CPU seconds, 23 subtrees unified
![Page 27: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/27.jpg)
26.02.2009 LG617 - XLE Lab 27
Kakia Chatsiou A brief introduction to XLE
LFG notation XLE-equivalent Description↑ ^ f-structure metavariable↓ ! f-structure metavariable= = defining equality≡ = meta-category definition=c =c or =C constraining
equality∈ $ set membership¬ ~ negation (complementation)← <- off-path constraint→ -> off-path constraint⊑ << subsumption (subsumes)⊒ >> subsumption (is subsumed by){ a | b | c | ... | z } { a | b | c | ... | z } disjunction( a ) { a } optional f-structure constraint
A closer look at XLE :: XLE vs LFG Notations ::
![Page 28: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/28.jpg)
26.02.2009 LG617 - XLE Lab 28
Kakia Chatsiou A brief introduction to XLE
Hands-on Session
![Page 29: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/29.jpg)
26.02.2009 LG617 - XLE Lab 29
Kakia Chatsiou A brief introduction to XLE
Outline
• About XLE• A closer look at XLE
– Grammar architecture– Getting started– Inspecting a basic grammar .lfg file– XLE interface– XLE vs LFG notations
• Hands-on Session • Where is XLE used?
– ParGram Project– Powerset – XLE Web interface
![Page 30: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/30.jpg)
26.02.2009 LG617 - XLE Lab 30
Kakia Chatsiou A brief introduction to XLE
Where is XLE used?
• ParGram Project• The core technology used in the consumer search
engine based on natural language processing which is currently under development by PowerPowerset set
• XLE web interface, a web-based tool for parsing LFG grammars using the XLE tool
![Page 31: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/31.jpg)
26.02.2009 LG617 - XLE Lab 31
Kakia Chatsiou A brief introduction to XLE
Where is XLE used? :: ParGram Project ::
Project Objectives
• Broad coverage grammars– Inclusion of important and frequently occurring constructions– Linguistically motivated analyses
• Parallel and crosslinguistic development of grammars between the participating members– All grammars are guided by a common set of linguistic principles
and a commonly agreed upon set of grammatical analyses and features
– Identical treatment of core crosslinguistic phenomena
• Methods in grammar engineering– Common test methods and evaluation strategies– Balance between efficiency, performance, reliability and
maintainability across grammars
![Page 32: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/32.jpg)
26.02.2009 LG617 - XLE Lab 32
Kakia Chatsiou A brief introduction to XLE
Participating Members
PARC, CAChinese, English,
French
EssexGreek, Welsh
ManchesterArabic
OxfordMalagasy
DCU, IrelandChinese, English, French, German,
Japanese, Spanish
Fuji XEROXJapanese
Bergen, NorwayGeorgian, Norwegian, Tigrinya
Ho Chi MinchVietnamese
DebrecenHungarian
IMS, StuttgartGerman
KonstanzUrdu
Sabanci, IstanbulTurkish
Where is XLE used? :: ParGram Project ::
![Page 33: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/33.jpg)
26.02.2009 LG617 - XLE Lab 33
Kakia Chatsiou A brief introduction to XLE
Where is XLE used? :: Powerset Search Engine ::
![Page 34: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/34.jpg)
26.02.2009 LG617 - XLE Lab 34
Kakia Chatsiou A brief introduction to XLE
About Powerset a Microsoft-partner company, currently building a transformative consumer search enginesearch engine based on natural language processing:– It is based on technologies that take advantage of the structure and
nuances of natural language– It offers an innovative approach to searching:
• It breaks the confines of keyword search queries using both keywords, short phrases and natural language
• Makes search more natural and intuitive• Aims at fundamentally changing how we search the web and at the same
time delivering higher quality results• currently searching Wikipedia with the help of FreeBase as the semantic
knowledge database
– Its technology has recently made into the Microsoft Live Search Engine(source: http://
www.powerset.com )
Where is XLE used? :: Powerset Search Engine ::
![Page 35: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/35.jpg)
26.02.2009 LG617 - XLE Lab 36
Kakia Chatsiou A brief introduction to XLE
• a web-based tool for parsing LFG grammars using the XLE tool
• outputs c-structures, f-structures and mrs-structures.
• allows the user to choose a grammar and type in a sentence to be analyzed. The sentence is then processed by the XLE parser, and the resulting structures are displayed.
• has a facility for uploading (small) user grammars, mainly for teaching purposes.
Where is XLE used? :: The XLE Web Interface ::
![Page 36: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/36.jpg)
26.02.2009 LG617 - XLE Lab 37
Kakia Chatsiou A brief introduction to XLE
References / Sources
• ParGramhttp://www2.parc.com/isl/groups/nltt/pargram/
• XLE Web Interface Documentation: http://maximos.aksis.uib.no/Aksis-wiki/XLE-Web
• XLE Documentation
http://www2.parc.com/isl/groups/nltt/xle/doc/xle_toc.html
• Powersethttp://www.powerset.com/
![Page 37: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/37.jpg)
26.02.2009 LG617 - XLE Lab 38
Kakia Chatsiou A brief introduction to XLE
Thank you! Next week (March 5th) • Dependency Constructions
– Weak Crossover and Traceless UDCS: Dalrymple, Kaplan and King (Kakia)
– Tough Contructions: Dalrymple and King (Budour)
Papers still available:• Morphology-Syntax Interface: Lexical sharing
– Turkish Suspended Affixation: Broadwell – Preposition Determiner Contractions: Wescoat
• On Grammatical Functions – Polish Subjectless Constructions: Kibort – Nature of OBJ: Borjars and Vincent
• Functional and Lexical Verbs – English Auxiliaries: Falk(http://courses.essex.ac.uk/lg/lg617/sessions08.html)
![Page 38: LG617 A brief introduction to XLE](https://reader036.vdocuments.net/reader036/viewer/2022062718/56812d0a550346895d91dda3/html5/thumbnails/38.jpg)
26.02.2009 LG617 - XLE Lab 39
Kakia Chatsiou A brief introduction to XLE
Thank you!
For more information and updates on the progress of the project visit
http://privatewww.essex.ac.uk/~achats/projects/greekgram/index.html