Skip to content

Commit

Permalink
version bump (0.20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsennrich committed Apr 2, 2013
1 parent 91af0f6 commit a9ea533
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 18 deletions.
10 changes: 10 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
ParZu changelog

0.20 2013/04/02
- retrained statistics for disambiguation module (on Europarl)
- new extraction process
- new statistics for some ambiguities (adv vs. pred)
- improved parse selection for n-best tagging
- some morphological agreement constraints are now soft constraints
(configurable through option `relax_agreement` in ParZu_parameters.pl)
- various grammar improvements
- remove deprecated index declarations (now slower on SWI-Prolog versions before 5.11.29)

0.19 2013/01/19
- new output options
- graphical output
Expand Down
4 changes: 0 additions & 4 deletions core/ParZu-parser.pl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
:- dynamic chart/10, scores/5, inccount/1, lastpos/1, tops_chart/4, statschart/8, perlevel/1, sentno/1, output/7, outputformat/1, sentdelim/1, returnsentdelim/1, nbestmode/1, morphology/1, lemmatisation/1, case_nom/2, case_acc/2, case_dat/2, case_gen/2, gender_neut/2.

:- index(chart(1,1,1,0,0,0,0,1,0,0));true. %% only has an effect in SWI
:- index(head(1,1,1,0,0,0,0,0,0,0));true.
:- index(scores(1,1,1,1,0));true.

:- ensure_loaded('tree_textual.pl').
:- assert(outputformat(raw)).
:- assert(sentdelim('$.')).
Expand Down
8 changes: 8 additions & 0 deletions core/ParZu_parameters.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
%% ParZu PARAMETER FILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%allow some structures that are strictly speaking ungrammatical (based on POS tags), but because of tagging errors, including them still helps
% set to 'no' to disable.
correct_mistagging(yes).

%allow some structures that are strictly speaking ungrammatical (based on morphological constraints), but because of errors of the morphology tool and/or typos in the text, including them still helps.
% set to 'no' to disable.
relax_agreement(yes).

%modus(fileout). % output to file, batch, without showing ASCII parsetrees
modus(showparses). % show ASCII parsetree

Expand Down
14 changes: 0 additions & 14 deletions core/grammar_german.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@
:- style_check(-discontiguous).
:- ensure_loaded('helper_predicates.pl').

:- index(get_case(0,1,0,1));true.
:- index(get_number(0,1,0,1));true.
:- index(get_gender(0,1,0,1));true.
:- index(get_person(0,1,0,1));true.
:- index(get_degree(0,1,0,1));true.

%allow some structures that are strictly speaking ungrammatical (based on POS tags), but because of tagging errors, including them still helps
% set to 'no' to disable.
correct_mistagging(yes).

%allow some structures that are strictly speaking ungrammatical (based on morphological constraints), but because of errors of the morphology tool and/or typos in the text, including them still helps.
% set to 'no' to disable.
relax_agreement(yes).

%======================================================================================
%determiners

Expand Down
18 changes: 18 additions & 0 deletions evaluation/eval.pl
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@
;
write('division by 0 error')
),
nl,
write('f1: '),
( ( TP > 0,
F1 is Precision*Recall*2 / (Precision + Recall),
format('~4f', F1)
)
;
write('division by 0 error')
),
nl, !.

printresult(Class) :- result(Class,TP,FP,FN,WA),
Expand Down Expand Up @@ -274,6 +283,15 @@
;
write('division by 0 error')
),
% nl,
% write('f1: '),
% ( ( TP > 0,
% F1 is Precision*Recall*2 / (Precision + Recall),
% format('~4f', F1)
% )
% ;
% write('division by 0 error')
% ),
nl, !.


Expand Down

0 comments on commit a9ea533

Please sign in to comment.