Unni Cathrine Eiken February 2005
Unni Cathrine Eiken February 2005 Unni Cathrine Eiken February 2005
function checks if there are any members in the array ekstra. If so, the main predicate and this extra attribute are stored in the array hovedpred. If there is nothing stored in ekstra, the main predicate is simply stored in the array hovedpred. finnARG1(); Returns the semantic form of argument 1 and stores it in the array ARG1. First the arrays ARGxep, ARGxverdi, ep and ARGx are emptied and subsequently set to the corresponding argument 1 values. Then finnARGx() is called. finnARGx(); Generalized function that finds the EP where the semantic form of the argument in question is stored, calls finnARGxsemform() and returns the semantic form. For ARG1 the actions are as follows: Goes through each member in ARG1ep. If the first member of ARG0ep is EP, the entry on the same index in ARG1verdi is stored as ARGx. Goes through each member in ARG1verdi. If ARGx matches an entry in ARG1verdi, the entry on the same index in ARG0ep is retrieved and stored in the array ep. finnARGxsemform() is called. finnARGxsemform(); Generalized function that finds the semantic form of the argument in question. For ARG1 the actions are as follows: Find semantic form of double predicates, if there are any: The variable epARGx is set to the first member of the array ep (this array holds the indexes of EPs where the semantic form of ARGx is stored). Goes through the array index (holds pointers to semantic forms of double arguments), if an entry matches epARGx as EP, the index pointer is retrieved and stored in the array ARGxind. Goes through semform, if an entry matches epARGx as EP, it is removed from the array. If there are any entries in ARGxind, each member is looked at. If an entry matches an entry in ARG0verdi, the entry on the same index in ARG0ep is added to the array liste. The array semform is gone through, if an entry matches an entry from liste as EP, the semantic form is retrieved and stored in the array ARGx. Else find the semantic form of the argument in question: Goes through semform , if an entry matches epARGx as EP the semantic form is retrieved and stored in the array ARGx. If the element stored in ARGx matches ‘named’, the proper noun must be found. The array navn is searched for a pattern with epARGx as EP. The semantic form is retrieved and stored in the array ARGx. The contents of the array ARGx is stored in the array ARG1. The contents of ARG1 is in finnHoved() stored as HovedARG1. 90
finnARG2(); This function has exactly the same performance as finnARG1(), only with correspondingly different variable and array names. The contents of ARG2 is in finnHoved() stored as HovedARG2. fjernEP(); Removes elements from the arrays ARG1ep, ARG1verdi, ARG2ep and ARG2verdi if they belong to the main EP. Goes through ARG1ep and ARG2ep. If the first member of ARG0ep matches the entry, the entry and the entry on the same index in the value-array is removed. The first entry in ARG0ep and ARG0verdi is subsequently removed. sjekkEkstra(); Checks if there are more predicate-argument structures to be found, calls finnResten() if there are. Goes through ARG1ep and ARG2ep trying to match each element in ARG0ep. If there is a match, there exists a predicate with a belonging argument and finnResten() is called. finnResten(); Finds the remaining predicate-argument structures. Calls the following (sub)functions: finnPred(); finnARG1(); finnARG2(); fjernEP(); sjekkEkstra(); lagStruktur(); Creates the predicate-argument structures as printed to the output file. If HovedARG1 or HovedARG2 contains more than one element, each element is printed with predicate and argument 2. Else, hovedpred,HovedARG1 and HovedARG2 are printed to file, separated by commas. 91
- Page 45 and 46: and woman occur together both in su
- Page 47 and 48: occur with. Arguments which are unl
- Page 49 and 50: 3.3.1 NorGram in outline Norsk komp
- 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: Appendix A: Ekstraktor.pl - algorit
- Page 99 and 100: #legger lest linje inn i @prt derso
- Page 101 and 102: sub fjernEP{ #fjerner elementer fra
- Page 103 and 104: } splice(@ARGx); $imax = @ARG3ep; @
- 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
finnARG2();<br />
This function has exactly the same performance as finnARG1(), only with<br />
correspondingly different variable and array names.<br />
The contents of ARG2 is in finnHoved() stored as HovedARG2.<br />
fjernEP();<br />
Removes elements from the arrays ARG1ep, ARG1verdi, ARG2ep and ARG2verdi if they<br />
belong to the main EP.<br />
Goes through ARG1ep and ARG2ep. If the first member of ARG0ep matches the entry,<br />
the entry and the entry on the same index in the value-array is removed.<br />
The first entry in ARG0ep and ARG0verdi is subsequently removed.<br />
sjekkEkstra();<br />
Checks if there are more predicate-argument structures to be found, calls finnResten() if<br />
there are.<br />
Goes through ARG1ep and ARG2ep trying to match each element in ARG0ep. If there is a<br />
match, there exists a predicate with a belonging argument and finnResten() is called.<br />
finnResten();<br />
Finds the remaining predicate-argument structures.<br />
Calls the following (sub)functions:<br />
finnPred();<br />
finnARG1();<br />
finnARG2();<br />
fjernEP();<br />
sjekkEkstra();<br />
lagStruktur();<br />
Creates the predicate-argument structures as printed to the output file.<br />
If HovedARG1 or HovedARG2 contains more than one element, each element is printed<br />
with predicate and argument 2.<br />
Else, hovedpred,HovedARG1 and HovedARG2 are printed to file, separated by commas.<br />
91