Unni Cathrine Eiken February 2005
Unni Cathrine Eiken February 2005 Unni Cathrine Eiken February 2005
} } } @utenDings = split(/\'/, $linje); push(@args, @utenDings); @pred = @utenDings[3]; push(@predikat, @pred); if ($predikat[0] =~ /named/){ foreach $verdi (@navn){ if ($verdi =~ /\(attr\(var\($epmor\)/){ splice(@pred); splice(@predikat); @uten = split(/\'/, $verdi); push(@arg, @uten); @pred = @uten[3]; push(@predikat, @pred); #print("@predikat\n"); } } } foreach $linje (@prt){ if ($linje =~ /\(attr\(var\($epmor\)/){ @utenDings = split(/\'/, $linje); push(@args, @utenDings); @ekstr = @utenDings[3]; push(@ekstra, @ekstr); } } sub finnARG1 { $imax = 0; splice(@ARGxep); splice(@ARGxverdi); splice(@ep); splice(@ARGx); } $imax = @ARG1ep; @ARGxep = @ARG1ep; @ARGxverdi = @ARG1verdi; finnARGx(); @ARG1 = @ARGx; sub finnARG2 { $imax = 0; splice(@ARGxep); splice(@ARGxverdi); splice(@ep); splice(@ARGx); } $imax = @ARG2ep; @ARGxep = @ARG2ep; @ARGxverdi = @ARG2verdi; finnARGx(); @ARG2 = @ARGx; sub finnARG3 { $imax = 0; splice(@ARGxep); splice(@ARGxverdi); splice(@ep); 96
} splice(@ARGx); $imax = @ARG3ep; @ARGxep = @ARG3ep; @ARGxverdi = @ARG3verdi; finnARGx(); @ARG3 = @ARGx; sub finnARGx { $epmor = $ARG0ep[0]; } for ($i = 0; $i < $imax; $i++){ if ($epmor =~ /$ARGxep[$i]/){ $ARGx = $ARGxverdi[$i]; $imax2 = @ARG0verdi; for ($ii = 0; $ii < $imax2; $ii++){ if ($ARGx =~ /$ARG0verdi[$ii]/){ push(@ep, $ARG0ep[$ii]); } }#slutt for2 } }#slutt for1 finnARGxsemform(); #fjernRestri(): #setter @ARGxep og @ARGxverdi til ARG0-verdiene #kjører restrik() sub fjernRestri { @ARGxep = @ARG0ep; @ARGxverdi = @ARG0verdi; restrik(); @ARG0ep = @ARGxep; @ARG0verdi = @ARGxverdi; } #restrik(): #Går gjennom @restriksjoner og @index og fjerner verdier fra @ARG0ep og @ARG0verdi dersom #disse arrayene inneholder informasjon om dem sub restrik { $imax = @ARGxep; } for ($i = 0; $i < $imax; $i++){ foreach $linje (@restriksjoner){ if ($linje =~ /\(attr\(var\($ARGxep[$i]\)/){ splice(@ARGxep, $i, 1); splice(@ARGxverdi, $i, 1); } } } foreach $linje (@index){ @utenKomma = split(/,/, $linje); push(@args, @utenKomma); $ep = substr(@utenKomma[1], 12, 2); push(@indexep, $ep); #print("@indexep\n"); #print("@semform\n"); foreach $linje (@indexep){ 97
- Page 51 and 52: Figure 3 The most useful structure
- Page 53 and 54: 3.4 Altering the source As already
- Page 55 and 56: (3- 12) (3- 13) Politiet leter ette
- Page 57 and 58: ARG1 and ARG2 arrays display a valu
- Page 59 and 60: (3- 20) Anne Slåtten bodde i et st
- Page 61 and 62: value and highly desirable. As such
- Page 63 and 64: this project, this can be interpret
- Page 65 and 66: The process of classifying the cons
- Page 67 and 68: There are several different distanc
- Page 69 and 70: . ankomme,etterforsker,?,? ankomme,
- Page 71 and 72: Test 2 Training set: EPAS_arg1 with
- Page 73 and 74: The training and test material was
- Page 75 and 76: • level 0: words which co-occur w
- Page 77 and 78: (4- 9) avklare,obduksjon,? bede-om,
- Page 79 and 80: (4-10) below shows the output for t
- Page 81 and 82: In the introduction to this chapter
- Page 83 and 84: the EPAS can be used in the classif
- Page 85 and 86: exemption of jobbe-utfra, none of t
- Page 87 and 88: antecedent for (4-15a). In the case
- Page 89 and 90: Figure 7 Interestingly enough, howe
- Page 91 and 92: When testing on knowledge-dependent
- Page 93 and 94: Firth, J. R. (1957): A synopsis of
- Page 95 and 96: Appendix A: Ekstraktor.pl - algorit
- Page 97 and 98: finnARG2(); This function has exact
- Page 99 and 100: #legger lest linje inn i @prt derso
- Page 101: sub fjernEP{ #fjerner elementer fra
- Page 105 and 106: } else{ } } } push(@liste, $ARG0ep[
- Page 107 and 108: 101 Appendix C: the EPAS list 23-å
- Page 109 and 110: 103 obdusere,,kvinne observere,,23-
- Page 111 and 112: Appendix D: Text aligned with EPAS
- Page 113 and 114: eventualiteter. Vi varslet Kripos.
- Page 115 and 116: Etterforskerne har flere observasjo
- Page 117 and 118: # Subrutine som tar inn argumentnum
- Page 119 and 120: Appendix F: POS-based structures SE
- Page 121: Vi har ingen spesiell teori som vi
}<br />
splice(@ARGx);<br />
$imax = @ARG3ep;<br />
@ARGxep = @ARG3ep;<br />
@ARGxverdi = @ARG3verdi;<br />
finnARGx();<br />
@ARG3 = @ARGx;<br />
sub finnARGx {<br />
$epmor = $ARG0ep[0];<br />
}<br />
for ($i = 0; $i < $imax; $i++){<br />
if ($epmor =~ /$ARGxep[$i]/){<br />
$ARGx = $ARGxverdi[$i];<br />
$imax2 = @ARG0verdi;<br />
for ($ii = 0; $ii < $imax2; $ii++){<br />
if ($ARGx =~ /$ARG0verdi[$ii]/){<br />
push(@ep, $ARG0ep[$ii]);<br />
}<br />
}#slutt for2<br />
}<br />
}#slutt for1<br />
finnARGxsemform();<br />
#fjernRestri():<br />
#setter @ARGxep og @ARGxverdi til ARG0-verdiene<br />
#kjører restrik()<br />
sub fjernRestri {<br />
@ARGxep = @ARG0ep;<br />
@ARGxverdi = @ARG0verdi;<br />
restrik();<br />
@ARG0ep = @ARGxep;<br />
@ARG0verdi = @ARGxverdi;<br />
}<br />
#restrik():<br />
#Går gjennom @restriksjoner og @index og fjerner verdier fra @ARG0ep og @ARG0verdi dersom<br />
#disse arrayene inneholder informasjon om dem<br />
sub restrik {<br />
$imax = @ARGxep;<br />
}<br />
for ($i = 0; $i < $imax; $i++){<br />
foreach $linje (@restriksjoner){<br />
if ($linje =~ /\(attr\(var\($ARGxep[$i]\)/){<br />
splice(@ARGxep, $i, 1);<br />
splice(@ARGxverdi, $i, 1);<br />
}<br />
}<br />
}<br />
foreach $linje (@index){<br />
@utenKomma = split(/,/, $linje);<br />
push(@args, @utenKomma);<br />
$ep = substr(@utenKomma[1], 12, 2);<br />
push(@indexep, $ep);<br />
#print("@indexep\n");<br />
#print("@semform\n");<br />
foreach $linje (@indexep){<br />
97