Skip to content

Commit 6caa3df

Browse files
committed
git-svn-id: file:///dta/svn/old/PyPES/trunk@548 91a45504-6d28-49e1-87dd-05d800df9125
1 parent 591bbec commit 6caa3df

File tree

9 files changed

+520
-156
lines changed

9 files changed

+520
-156
lines changed

GNUmakefile

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,7 @@ PYTHONPATH = src
1212
PYTHON = $(ENV) PYTHONPATH="$(PYTHONPATH)" python3.0
1313

1414

15-
INFERDTA = \
16-
aquaint-brandeis.kbe.xml \
17-
aquaint-chrisrte.kbe.xml \
18-
aquaint-cns.kbe.xml \
19-
aquaint-cycorp.kbe.xml \
20-
aquaint-kbeval.kbe.xml \
21-
aquaint-lcch.kbe.xml \
22-
aquaint-lccm.kbe.xml \
23-
aquaint-mit.kbe.xml \
24-
aquaint-modals.kbe.xml \
25-
aquaint-parc-dev.kbe.xml \
26-
aquaint-parc-predev.kbe.xml \
27-
aquaint-simple.kbe.xml \
28-
aquaint-stanford.kbe.xml \
29-
aquaint-utdicsi.kbe.xml \
30-
ave-06-de-tst.rte.xml \
31-
ave-06-en-dev-np-nr.rte.xml \
32-
ave-06-en-dev-np-r.rte.xml \
33-
ave-06-en-dev-yp-nr.rte.xml \
34-
ave-06-en-dev-yp-r.rte.xml \
35-
ave-06-en-tst.rte.xml \
36-
ave-07-de-dev.ave.xml \
37-
ave-07-de-tst.ave.xml \
38-
ave-07-en-dev.ave.xml \
39-
ave-07-en-tst.ave.xml \
40-
ave-08-de-dev.ave.xml \
41-
ave-08-de-tst.ave.xml \
42-
ave-08-en-dev.ave.xml \
43-
ave-08-en-tst.ave.xml \
44-
fracas.bmc.xml \
45-
rte-05-dev.rte.xml \
46-
rte-05-tst.rte.xml \
47-
rte-06-dev.rte.xml \
48-
rte-06-tst.rte.xml \
49-
rte-07-dev-2w.rte.xml \
50-
rte-07-dev-3w.rte.xml \
51-
rte-07-tst-2w.rte.xml \
52-
rte-07-tst-3w-results.tar.gz \
53-
rte-07-tst-3w.txt \
54-
rte-08-2w-results.tar.gz \
55-
rte-08-3w-results.tar.gz \
56-
rte-08.rte.xml \
57-
rte-wang-birth.rte.xml \
58-
rte-wang-kill.rte.xml
15+
INFERDTA = $(subst dta/infer/orig/, , $(wildcard dta/infer/orig/*.xml *.gz))
5916

6017
INFERDTA_ORIG = $(patsubst %, dta/infer/orig/%, $(INFERDTA))
6118

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Contents:
1111
:maxdepth: 2
1212

1313
tutorial.rst
14+
library/bin.rst
1415
guidelines.rst
1516

1617
Indices and tables

doc/library/bin.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
:mod:`bin` --- binaries
2+
=======================
3+
4+
.. module:: bin
5+
:synopsis: binaries
6+
7+
:mod:`bin` contains main programmes and command line utilities.
8+
9+
.. function:: compare_annotations.main( [argv] )
10+
11+
compares two annotation files containing decisions on candidate
12+
entailments, such as :file:`dta/infer/fracas/fracas-1-1/gold.tsa.xml` and
13+
:file:`dta/infer/fracas/fracas-1-1/McPIETAgent.tsa.xml`.
14+
15+
The *argv* list should contain as its first element the subdirectory
16+
where files are to be found (default :file:`dta/infer/fracas/fracas-1`).
17+
Then all directories are traversed which are subdirectories
18+
:file:`dta/infer/fracas` and have as a prefix ``fracas-1``.
19+
20+
Within each directory, a file named in the second element in the
21+
*argv* list (default ``gold.tsa.xml``) is then compared against
22+
a file named in the third element (default ``McPIETAgent.tsa.xml``).
23+
24+
.. function:: decide_annotations.main( [argv] )
25+
26+
takes a McPIET annotation (such as :file:`dta/infer/fracas/fracas-1-1/McPIETAgent.tsa.xml`)
27+
and makes new entailment decisions on the basis of the numeric `r1` and `r2` fields.
28+
29+
The default strategy is to say `entailment` when `r1` is `1.0`, contradiction when `r2`
30+
is `1.0` and `unknown` when both are `0.0`. -- This leads to strict logical decisions
31+
and no robustness.
32+
33+
The strategy used in :function:`decide_annotation.main( [argv] )`, on the other hand,
34+
leads to more robustness. Here a decision is `entailment` whenever `r1` > `r2`, and
35+
36+
does the same traversal through subdirectories, given *argv* as
37+
:function:`compare_annotations.main`.
38+
39+
40+
.. function:: extract_ergsem_smi.main( [argv] )
41+
.. function:: extract_logical_patterns.main( [argv] )
42+
.. function:: preprocess_fracas.main( [argv] )
43+
.. function:: preprocess_rte.main( [argv] )
44+
.. function:: preprocess_rte_results.main( [argv] )
45+
.. function:: read_treebank.main( [argv] )
46+
.. function:: run_score.main( [argv] )
47+
.. function:: run_testsuite.main( [argv] )
48+
.. function:: sanitize_rte.main( [argv] )
49+

0 commit comments

Comments
 (0)