Wide-coverage Translation in GF Krasimir Angelov University of - - PowerPoint PPT Presentation

wide coverage translation in gf
SMART_READER_LITE
LIVE PREVIEW

Wide-coverage Translation in GF Krasimir Angelov University of - - PowerPoint PPT Presentation

Wide-coverage Translation in GF Krasimir Angelov University of Gothenburg, Digital Grammars AB August 18, 2017 Introduction 1 Free Language 2 Resource Grammar Resource Lexicon Demo Uncontrolled Language 3 Demo Summary 4 Get me out of


slide-1
SLIDE 1

Wide-coverage Translation in GF

Krasimir Angelov

University of Gothenburg, Digital Grammars AB

August 18, 2017

slide-2
SLIDE 2

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-3
SLIDE 3

Get me out of here!

Can we escape from the controlled languages?

slide-4
SLIDE 4

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-5
SLIDE 5

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-6
SLIDE 6

The Components of the Grammar

slide-7
SLIDE 7

Resource Grammar

Level 1: Resource Grammar

morphology word order agreement

slide-8
SLIDE 8

Statistical Disambiguation

In large grammars a single sentence can have millions of analyses Alternatives are ranked by their probabilities: P(DetCN (DetQuant IndefArt NumSg) (UseN share N) | NP) = P(DetCN | NP) ∗ P(DetQuant IndefArt NumSg | Det) ∗ P(UseN share N | CN) = P(DetCN | NP) ∗ P(DetQuant | Det) ∗ P(IndefArt | Quant) ∗ P(NumSg | Num) ∗ P(UseN | CN) ∗ P(share N | N)

slide-9
SLIDE 9

Penn Treebank Parse Tree

( (S (NP-SBJ (NNP BELL) (NNP INDUSTRIES) (NNP Inc.) ) (VP (VBD increased) (NP (PRP$ its) (NN quarterly) ) (PP-DIR (TO to) (NP (CD 10) (NNS cents) )) (PP-DIR (IN from) (NP (NP (CD seven) (NNS cents) ) (NP-ADV (DT a) (NN share) )))) (. .) ))

slide-10
SLIDE 10

Penn Treebank in GF

slide-11
SLIDE 11

Chunking

local agreement local reordering built in a couple of hours from the resource grammar

fun PhrUtt : Utt -> Phr ; ChunkPhr : Chunks -> Phr ; OneChunk : Chunk -> Chunks ; PlusChunk : Chunk -> Chunks -> Chunks ; fun AP_Chunk : AP -> Chunk ; S_Chunk : S

  • > Chunk ;

NP_Nom_Chunk : NP -> Chunk ; NP_Acc_Chunk : NP -> Chunk ;

slide-12
SLIDE 12

Some Problems on Level 1

climb up klättra upp из+качвам

The boy climbed up the mountain. The boy climbed the mountain up. The prices climbed up quickly. (different sense)

slide-13
SLIDE 13

More Problems on Level 1

Some derivational morphology:

computer game data+spel компютърна игра

and simple multiword expressions:

instead of istället вместо

slide-14
SLIDE 14

Level 2: Non Compositional Translation

The RGL would be a perfect translation device if thranslation was compositional. But compare: my name is John ich heisse John Different languages use different linguistic devices for the same semantics.

slide-15
SLIDE 15

Three Different Trees for ”My name is John”

My name is John:

slide-16
SLIDE 16

Three Different Trees for ”My name is John”

My name is John:

slide-17
SLIDE 17

Semantic Predicates Defined Using the RGL

English:

lin have_name_Cl p n = PredVP (DetCN (PossNP p) (UseN name_N)) (UseComp (CompNP (UsePN n))) German: lin have_name_Cl p n = PredVP p (CompV2 heissen_V2 (UsePN n))

slide-18
SLIDE 18

Semantic Predicates Defined Using the RGL API

English:

lin have_name_Cl p n = mkCl (mkNP (mkDet p) name_N) (mkNP n) German: lin have_name_Cl p n = mkCl p (mkV2 heissen_V) (mkNP n) French: lin have_name_Cl p n = mkCl p (reflV appeler_V) (mkNP n)

slide-19
SLIDE 19

Semantic Predicates Defined Using the RGL API

In general stable cross lingual categories are: VP instead of V AP instead of A CN instead of N S in the worst case

slide-20
SLIDE 20

An example from the Swedish Konstruktikon

is_wrong_VP : VP ; English: he is wrong lin is_wrong_VP = UseComp (CompAP (PositA wrong_A)) Swedish: han har fel lin is_wrong_VP = ComplSlash (SlashV2 har_V2) (MassNP (UseN fel_N))

slide-21
SLIDE 21

An example with Variable Parts

English: It makes sense It makes a lot of sense It makes some sense lin makes_sense : Det -> VP ;

slide-22
SLIDE 22

a More Typical Application Grammar

cat Comment ; Item ; Kind ; Quality ; fun Pred : Item -> Quality -> Comment ; This, That, These, Those : Kind -> Item ; Mod : Quality -> Kind -> Kind ; Wine, Cheese, Fish, Pizza : Kind ; Very : Quality -> Quality ; Fresh, Warm, Italian, Expensive, Delicious, Boring : Quality ;

slide-23
SLIDE 23

Comparison with RParse

0,01 0,1 1 10 100 5 10 15 20 25 30 35 40 Rparse, standard Rparse, fanout ≤ 2 PGF, admissible

slide-24
SLIDE 24

Heuristics

0,01 0,1 1 10 100 5 10 15 20 25 30 35 40 45 50 55 60 PGF, admissible PGF, h=0.50 PGF, h=0.75 PGF, h=0.95

slide-25
SLIDE 25

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-26
SLIDE 26

Resource Lexicon: Abstract Syntax

A set of abstract language independent meanings

fun xylophone_N : N ;

  • - 03721384 a percussion instrument with

wooden bars tuned to ... fun arm_1_N : N ;

  • - 05563770 a human limb; technically

the part of the superior fun arm_2_N : N ;

  • - 04565375 any instrument or

instrumentality used ... fun account_for_V2 : V2 ;

  • - 02635033 be the reason or

explanation for ... fun studentFem_N : N ;

  • - 10665698 a learner who is enrolled

in an educational ... fun studentMasc_N : N ;

  • - 10665698 a learner who is enrolled

in an educational ...

slide-27
SLIDE 27

English Lexicon

Nouns, Verbs, Adjectives, Adverbs

Oxford Advanced Learners Dictionary Princeton WordNet Spelling variants (British/American/Others) Harmonized with RGL

Prepositions

PennTreebank Wikipedia

Verb Frames

PennTreebank

slide-28
SLIDE 28

English Lexicon Example

lin house_N = mkN "house" "houses"; lin play_V = mkV "play"; lin beautiful_A = compoundA (mkA "beautiful"); lin behind_Adv = mkAdv "behind"; lin instead_of_Prep = mkPrep "instead of"; lin theatre_N = variants {mkN "theatre"; mkN "theater"}; lin maharaja_N = variants {mkN "maharaja"; mkN "maharajah"}; lin ache_V = mkV "ache"; lin ache_for_V2 = prepV2 (mkV "ache") (mkPrep "for"); lin cod_liver_oil_N = mkN "cod-liver oil" ;

slide-29
SLIDE 29

Translations

Free Electronic Dictionaries (Bulgarian, Swedish) WordNet (Finnish, Russian) Universal WordNet (Bulgarian) Apertium (Bulgarian, Others?) Google Translate (Bulgarian, Swedish) Giza Phrase Tables (Bulgarian) PannLex (Thai) Manual Translation (Bulgarian, Chinese) Wiktionary (Most Other Languages)

slide-30
SLIDE 30

Morphology

Smart Paradigms IrregXXX modules Free Morphological Lexicons (OALD, Open Office, SALDO, KOTUS)

slide-31
SLIDE 31

Learning Lexical Probabilities

There is no annotated corpus with abstract senses but we can learn the distribution by using EM and multilingual corpora.

hand_N arm_1_N arm_2_N weapon_N hand arm vapen ръка оръжие hand arm weapon

slide-32
SLIDE 32

Lexical Selection

Currently only context-free disambiguation model All alternatives are listed in probability order Work on context-dependent disambiguation is ongoing aim_at_V2 bank_1_N 6.067170072244503e-75 aim_at_V2 bank_2_N 0.40476189961606895 along_Prep bank_1_N 2.2727272727272742e-2 account_for_V2 weather_N 7.679211977545736e-34 account_for_V2 time_1_N 6.42858812965317e-34 account_for_V2 tense_N 1.1176033841179318e-82

slide-33
SLIDE 33

Current Status

There are still many errors in the dictionaries. English, Swedish and Bulgarian seems to be in the best shape. In some languages words are checked in Frequency Order

slide-34
SLIDE 34

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-35
SLIDE 35

Vauquois

word to word transfer syntactic transfer semantic interlingua GF

slide-36
SLIDE 36

Colors in Translation

slide-37
SLIDE 37

Architecture of the App

slide-38
SLIDE 38

Architecture of the App

slide-39
SLIDE 39

Architecture of the App

slide-40
SLIDE 40

Architecture of the App

slide-41
SLIDE 41

Architecture of the App

slide-42
SLIDE 42

Architecture of the App

slide-43
SLIDE 43

Architecture of the App

slide-44
SLIDE 44

Architecture of the App

slide-45
SLIDE 45

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-46
SLIDE 46

Building the Spine

huvud ?3 = headBodypart [1]

slide-47
SLIDE 47

Building the Spine

huvud ?5 = showBodypartCommand ?3 ?3 = headBodypart [1]

slide-48
SLIDE 48

Building the Spine

huvud ?1 = commandPhrase ?5 ?5 = showBodypartCommand ?3 ?3 = headBodypart [1]

slide-49
SLIDE 49

Building the Spine

huvud ?2 = bleedBodypartStatement ?0 ?3 ?2 = painBodypartStatement ?0 ?3 ?1 = commandPhrase ?5 ?5 = showBodypartCommand ?3 ?3 = headBodypart [1]

slide-50
SLIDE 50

Building the Spine

huvud ?4 = whenQuestion ?2 ?4 = whetherQuestion ?2 ?1 = howlongHaveQuestionPhrase ?2 ?1 = statementHaveNotPhrase ?2 ?1 = statementHavePhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementNotPhrase ?2 ?1 = statementPhrase ?2 ?1 = statementTimePhrase ?2 ?0 ?2 = bleedBodypartStatement ?0 ?3 ?2 = painBodypartStatement ?0 ?3 ?1 = commandPhrase ?5 ?5 = showBodypartCommand ?3 ?3 = headBodypart [1]

slide-51
SLIDE 51

Building the Spine

huvud ?1 = questionHavePhrase ?4 ?1 = questionHaveTimePhrase ?4 ?0 ?1 = questionPhrase ?4 ?4 = whenQuestion ?2 ?4 = whetherQuestion ?2 ?1 = howlongHaveQuestionPhrase ?2 ?1 = statementHaveNotPhrase ?2 ?1 = statementHavePhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementNotPhrase ?2 ?1 = statementPhrase ?2 ?1 = statementTimePhrase ?2 ?0 ?2 = bleedBodypartStatement ?0 ?3 ?2 = painBodypartStatement ?0 ?3 ?1 = commandPhrase ?5 ?5 = showBodypartCommand ?3 ?3 = headBodypart [1]

slide-52
SLIDE 52

Building the Spine

huvud

  • nt

?1 = questionHavePhrase ?4 ?1 = questionHaveTimePhrase ?4 ?0 ?1 = questionPhrase ?4 ?4 = whenQuestion ?2 ?4 = whetherQuestion ?2 ?1 = howlongHaveQuestionPhrase ?2 ?1 = statementHaveNotPhrase ?2 ?1 = statementHavePhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementNotPhrase ?2 ?1 = statementPhrase ?2 ?1 = statementTimePhrase ?2 ?0 ?2 = bleedBodypartStatement ?0 ?3 ?2 = painBodypartStatement ?0 ?3 ?1 = commandPhrase ?5 ?1 = thisWillHurtALittlePhrase [1] ?5 = showBodypartCommand ?3 ?1 = thisWillHurtPhrase [1] ?3 = headBodypart [1] ?1 = thisWillNotHurtPhrase [1] ?2 = painBodypartStatement ?0 ?0 [1] ?2 = painOrganStatement ?0 ?0 [1] ?3 = painSymptom [1]

slide-53
SLIDE 53

Building the Spine

huvud

  • nt

?1 = questionHavePhrase ?4 ?1 = questionHaveTimePhrase ?4 ?0 ?1 = questionPhrase ?4 ?4 = whenQuestion ?2 ?4 = whetherQuestion ?2 ?1 = howlongHaveQuestionPhrase ?2 ?1 = statementHaveNotPhrase ?2 ?1 = statementHavePhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementNotPhrase ?2 ?1 = statementPhrase ?2 ?1 = statementTimePhrase ?2 ?0 ?2 = bleedBodypartStatement ?0 ?3 ?4 = whoSymptomQuestion ?3 ?2 = painBodypartStatement ?0 ?3 ?2 = symptomStatement ?0 ?3 ?1 = commandPhrase ?5 ?1 = thisWillHurtALittlePhrase [1] ?5 = showBodypartCommand ?3 ?1 = thisWillHurtPhrase [1] ?3 = headBodypart [1] ?1 = thisWillNotHurtPhrase [1] ?2 = painBodypartStatement ?0 ?0 [1] ?2 = painOrganStatement ?0 ?0 [1] ?3 = painSymptom [1]

slide-54
SLIDE 54

Building the Spine

huvud

  • nt

?1 = questionHavePhrase ?4 ?1 = questionHaveTimePhrase ?4 ?0 ?1 = questionPhrase ?4 ?4 = whenQuestion ?2 ?1 = howlongHaveQuestionPhrase ?2 ?4 = whetherQuestion ?2 ?1 = statementHaveNotPhrase ?2 ?1 = howlongHaveQuestionPhrase ?2 ?1 = statementHavePhrase ?2 ?1 = statementHaveNotPhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementHavePhrase ?2 ?1 = statementNotPhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementPhrase ?2 ?1 = statementNotPhrase ?2 ?1 = statementTimePhrase ?2 ?0 ?1 = statementPhrase ?2 ?4 = whenQuestion ?2 ?1 = statementTimePhrase ?2 ?0 ?4 = whetherQuestion ?2 ?2 = bleedBodypartStatement ?0 ?3 ?4 = whoSymptomQuestion ?3 ?2 = painBodypartStatement ?0 ?3 ?2 = symptomStatement ?0 ?3 ?1 = commandPhrase ?5 ?1 = thisWillHurtALittlePhrase [1] ?5 = showBodypartCommand ?3 ?1 = thisWillHurtPhrase [1] ?3 = headBodypart [1] ?1 = thisWillNotHurtPhrase [1] ?2 = painBodypartStatement ?0 ?0 [1] ?2 = painOrganStatement ?0 ?0 [1] ?3 = painSymptom [1]

slide-55
SLIDE 55

Building the Spine

huvud

  • nt

?1 = questionHavePhrase ?4 ?1 = questionHavePhrase ?4 ?1 = questionHaveTimePhrase ?4 ?0 ?1 = questionHaveTimePhrase ?4 ?0 ?1 = questionPhrase ?4 ?1 = questionPhrase ?4 ?4 = whenQuestion ?2 ?1 = howlongHaveQuestionPhrase ?2 ?4 = whetherQuestion ?2 ?1 = statementHaveNotPhrase ?2 ?1 = howlongHaveQuestionPhrase ?2 ?1 = statementHavePhrase ?2 ?1 = statementHaveNotPhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementHavePhrase ?2 ?1 = statementNotPhrase ?2 ?1 = statementHaveTimePhrase ?2 ?0 ?1 = statementPhrase ?2 ?1 = statementNotPhrase ?2 ?1 = statementTimePhrase ?2 ?0 ?1 = statementPhrase ?2 ?4 = whenQuestion ?2 ?1 = statementTimePhrase ?2 ?0 ?4 = whetherQuestion ?2 ?2 = bleedBodypartStatement ?0 ?3 ?4 = whoSymptomQuestion ?3 ?2 = painBodypartStatement ?0 ?3 ?2 = symptomStatement ?0 ?3 ?1 = commandPhrase ?5 ?1 = thisWillHurtALittlePhrase [1] ?5 = showBodypartCommand ?3 ?1 = thisWillHurtPhrase [1] ?3 = headBodypart [1] ?1 = thisWillNotHurtPhrase [1] ?2 = painBodypartStatement ?0 ?0 [1] ?2 = painOrganStatement ?0 ?0 [1] ?3 = painSymptom [1]

slide-56
SLIDE 56

Merge

?1 = howlongHaveQuestionPhrase ?2 ?1 = thisWillHurtPhrase [1] ?1 = statementHaveNotPhrase ?2 ?1 = thisWillNotHurtPhrase [1] ?1 = statementHavePhrase ?2 ?2 = bleedBodypartStatement ?0 ?3 ?1 = statementHaveTimePhrase ?2 ?0 ?2 = painBodypartStatement ?0 ?3 [1] ?1 = statementNotPhrase ?2 ?2 = painOrganStatement ?0 ?0 [1] ?1 = statementPhrase ?2 ?2 = symptomStatement ?0 ?4 ?1 = statementTimePhrase ?2 ?0 ?3 = headBodypart [1] ?1 = questionHavePhrase ?5 ?4 = painSymptom [1] ?1 = questionHaveTimePhrase ?5 ?0 ?5 = whenQuestion ?2 ?1 = questionPhrase ?5 ?5 = whetherQuestion ?2 ?1 = commandPhrase ?6 ?5 = whoSymptomQuestion ?4 ?1 = thisWillHurtALittlePhrase [1] ?6 = showBodypartCommand ?3

slide-57
SLIDE 57

Merge

?1 = howlongHaveQuestionPhrase ?2 ?1 = thisWillHurtPhrase [1] ?1 = statementHaveNotPhrase ?2 ?1 = thisWillNotHurtPhrase [1] ?1 = statementHavePhrase ?2 ?2 = bleedBodypartStatement ?0 ?3 [1] ?1 = statementHaveTimePhrase ?2 ?0 ?2 = painBodypartStatement ?0 ?3 [2] ?1 = statementNotPhrase ?2 ?2 = painOrganStatement ?0 ?0 [1] ?1 = statementPhrase ?2 ?2 = symptomStatement ?0 ?4 ?1 = statementTimePhrase ?2 ?0 ?3 = headBodypart [1] ?1 = questionHavePhrase ?5 ?4 = painSymptom [1] ?1 = questionHaveTimePhrase ?5 ?0 ?5 = whenQuestion ?2 ?1 = questionPhrase ?5 ?5 = whetherQuestion ?2 ?1 = commandPhrase ?6 ?5 = whoSymptomQuestion ?4 ?1 = thisWillHurtALittlePhrase [1] ?6 = showBodypartCommand ?3 [1]

slide-58
SLIDE 58

Merge

?1 = howlongHaveQuestionPhrase ?2 ?1 = thisWillHurtPhrase [1] ?1 = statementHaveNotPhrase ?2 ?1 = thisWillNotHurtPhrase [1] ?1 = statementHavePhrase ?2 ?2 = bleedBodypartStatement ?0 ?3 [1] ?1 = statementHaveTimePhrase ?2 ?0 ?2 = painBodypartStatement ?0 ?3 [2] ?1 = statementNotPhrase ?2 ?2 = painOrganStatement ?0 ?0 [1] ?1 = statementPhrase ?2 ?2 = symptomStatement ?0 ?4 [1] ?1 = statementTimePhrase ?2 ?0 ?3 = headBodypart [1] ?1 = questionHavePhrase ?5 ?4 = painSymptom [1] ?1 = questionHaveTimePhrase ?5 ?0 ?5 = whenQuestion ?2 ?1 = questionPhrase ?5 ?5 = whetherQuestion ?2 ?1 = commandPhrase ?6 ?5 = whoSymptomQuestion ?4 [1] ?1 = thisWillHurtALittlePhrase [1] ?6 = showBodypartCommand ?3 [1]

slide-59
SLIDE 59

Merge

?1 = howlongHaveQuestionPhrase ?2 ?1 = thisWillHurtPhrase [1] ?1 = statementHaveNotPhrase ?2 ?1 = thisWillNotHurtPhrase [1] ?1 = statementHavePhrase ?2 ?2 = bleedBodypartStatement ?0 ?3 [1] ?1 = statementHaveTimePhrase ?2 ?0 ?2 = painBodypartStatement ?0 ?3 [2] ?1 = statementNotPhrase ?2 ?2 = painOrganStatement ?0 ?0 [1] ?1 = statementPhrase ?2 ?2 = symptomStatement ?0 ?4 [1] ?1 = statementTimePhrase ?2 ?0 ?3 = headBodypart [1] ?1 = questionHavePhrase ?5 ?4 = painSymptom [1] ?1 = questionHaveTimePhrase ?5 ?0 ?5 = whenQuestion ?2 [2] ?1 = questionPhrase ?5 ?5 = whetherQuestion ?2 [2] ?1 = commandPhrase ?6 ?5 = whoSymptomQuestion ?4 [1] ?1 = thisWillHurtALittlePhrase [1] ?6 = showBodypartCommand ?3 [1]

slide-60
SLIDE 60

Merge

?1 = howlongHaveQuestionPhrase ?2 [2] ?1 = thisWillHurtPhrase [1] ?1 = statementHaveNotPhrase ?2 [2] ?1 = thisWillNotHurtPhrase [1] ?1 = statementHavePhrase ?2 [2] ?2 = bleedBodypartStatement ?0 ?3 [1] ?1 = statementHaveTimePhrase ?2 ?0 [2] ?2 = painBodypartStatement ?0 ?3 [2] ?1 = statementNotPhrase ?2 [2] ?2 = painOrganStatement ?0 ?0 [1] ?1 = statementPhrase ?2 [2] ?2 = symptomStatement ?0 ?4 [1] ?1 = statementTimePhrase ?2 ?0 [2] ?3 = headBodypart [1] ?1 = questionHavePhrase ?5 [2] ?4 = painSymptom [1] ?1 = questionHaveTimePhrase ?5 ?0 [2] ?5 = whenQuestion ?2 [2] ?1 = questionPhrase ?5 [2] ?5 = whetherQuestion ?2 [2] ?1 = commandPhrase ?6 [1] ?5 = whoSymptomQuestion ?4 [1] ?1 = thisWillHurtALittlePhrase [1] ?6 = showBodypartCommand ?3 [1]

slide-61
SLIDE 61

Filter

?1 = howlongHaveQuestionPhrase ?2 [2] ?1 = statementHaveNotPhrase ?2 [2] ?1 = statementHavePhrase ?2 [2] ?1 = statementHaveTimePhrase ?2 ?0 [2] ?2 = painBodypartStatement ?0 ?3 [2] ?1 = statementNotPhrase ?2 [2] ?1 = statementPhrase ?2 [2] ?1 = statementTimePhrase ?2 ?0 [2] ?3 = headBodypart [1] ?1 = questionHavePhrase ?5 [2] ?4 = painSymptom [1] ?1 = questionHaveTimePhrase ?5 ?0 [2] ?5 = whenQuestion ?2 [2] ?1 = questionPhrase ?5 [2] ?5 = whetherQuestion ?2 [2] ?6 = showBodypartCommand ?3 [1]

slide-62
SLIDE 62

Extraction

howlongHaveQuestionPhrase (painBodypartStatement ? headBodypart) statementHaveNotPhrase (painBodypartStatement ? headBodypart) statementHavePhrase (painBodypartStatement ? headBodypart) statementHaveTimePhrase (painBodypartStatement ? headBodypart) ? statementNotPhrase (painBodypartStatement ? headBodypart) . . . questionHavePhrase (whenQuestion (painBodypartStatement ? headBodypart)) questionHavePhrase (whetherQuestion (painBodypartStatement ? headBodypart)) questionPhrase (whenQuestion (painBodypartStatement ? headBodypart)) questionPhrase (whetherQuestion (painBodypartStatement ? headBodypart)) . . .

slide-63
SLIDE 63

Ranking

Query: huvud ont Suggestions: hur l¨ ange har ?0 haft ont i huvudet ?0 har inte haft ont i huvudet ?0 har haft ont i huvudet . . .

slide-64
SLIDE 64

Ranking

howlongHaveQuestionPhrase (painBodypartStatement ? headBodypart) [0.064651] statementHaveNotPhrase (painBodypartStatement ? headBodypart) [0.076847] statementHavePhrase (painBodypartStatement ? headBodypart) [0.109109] statementHaveTimePhrase (painBodypartStatement ? headBodypart) ? [0.076249] statementNotPhrase (painBodypartStatement ? headBodypart) [0.109109] . . . questionHavePhrase (whenQuestion (painBodypartStatement ? headBodypart)) [0.071202] questionHavePhrase (whetherQuestion (painBodypartStatement ? headBodypart)) [0.100887] questionPhrase (whenQuestion (painBodypartStatement ? headBodypart)) [0.145479] questionPhrase (whetherQuestion (painBodypartStatement ? headBodypart)) [0.207390] . . .

slide-65
SLIDE 65

Ranking

howlongHaveQuestionPhrase (painBodypartStatement ? headBodypart) [0.064651] statementHaveNotPhrase (painBodypartStatement ? headBodypart) [0.076847] statementHavePhrase (painBodypartStatement ? headBodypart) [0.109109] statementHaveTimePhrase (painBodypartStatement ? headBodypart) ? [0.076249] statementNotPhrase (painBodypartStatement ? headBodypart) [0.109109] . . . questionHavePhrase (whenQuestion (painBodypartStatement ? headBodypart)) [0.071202] questionHavePhrase (whetherQuestion (painBodypartStatement ? headBodypart)) [0.100887] questionPhrase (whenQuestion (painBodypartStatement ? headBodypart)) [0.145479] questionPhrase (whetherQuestion (painBodypartStatement ? headBodypart)) [0.207390] . . .

slide-66
SLIDE 66

1

Introduction

2

Free Language Resource Grammar Resource Lexicon Demo

3

Uncontrolled Language Demo

4

Summary

slide-67
SLIDE 67

Summary Resource Grammar/Lexicon Statistical Parsing Approximate Search in a Controlled Language