Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.pyc
__pycache__
.DS_Store
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
5.5

- Issue folder was used to recreate foo.show() and foo.table() mismatch, was not successful. Mismatches only show for heavy_np sentences
- output_tables and output_trees folders were created for paper writing purposes.
- table function in helper.py changed to output latex tables



*mgproc*: A Python Package for MG Processing Research
===================================================

Expand Down
2 changes: 1 addition & 1 deletion comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def table(self, numerical: bool=False, filename: str=None):
headers = ['Metric', 'Filters'] +\
[comp.name for comp in self.comparisons]
table = tabulate.tabulate(sorted(self._matrix(numerical=numerical)),
tablefmt='orgtbl', headers=headers)
tablefmt='latex', headers=headers)
if filename:
f = open(filename, 'w')
f.write(table)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# name; LaTeX command; winner; loser
#
#
dep-nested-crossed ; ; dep_cross ; dep_nested ;
local-matrix ; ; emb_local ; emb_max ;
8 changes: 8 additions & 0 deletions comparisons/heavy_np/nomv_ppmv.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; ppmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; ppmv_sdp_lpp ;
ldp_spp ; ; ppmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; ppmv_ldp_lpp ;
10 changes: 10 additions & 0 deletions comparisons/heavy_np/nomv_ppmv_rc_prom.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; ppmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; ppmv_sdp_lpp ;
ldp_spp ; ; ppmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; ppmv_ldp_lpp ;
eng-src-orc-prom ; ; eng_src_prom ; eng_orc_prom ;
chn-src-orc-prom ; ; chn_src_prom ; chn_orc_prom ;
10 changes: 10 additions & 0 deletions comparisons/heavy_np/nomv_ppmv_rc_wh.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; ppmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; ppmv_sdp_lpp ;
ldp_spp ; ; ppmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; ppmv_ldp_lpp ;
eng-src-orc-wh ; ; eng_src_wh ; eng_orc_wh ;
chn-src-orc-wh ; ; chn_src_wh ; chn_orc_wh ;
8 changes: 8 additions & 0 deletions comparisons/heavy_np/nomv_rmnt.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rmnt_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rmnt_sdp_lpp ;
ldp_spp ; ; rmnt_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rmnt_ldp_lpp ;
10 changes: 10 additions & 0 deletions comparisons/heavy_np/nomv_rmnt_rc_prom.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rmnt_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rmnt_sdp_lpp ;
ldp_spp ; ; rmnt_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rmnt_ldp_lpp ;
eng-src-orc-prom ; ; eng_src_prom ; eng_orc_prom ;
chn-src-orc-prom ; ; chn_src_prom ; chn_orc_prom ;
10 changes: 10 additions & 0 deletions comparisons/heavy_np/nomv_rmnt_rc_wh.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rmnt_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rmnt_sdp_lpp ;
ldp_spp ; ; rmnt_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rmnt_ldp_lpp ;
eng-src-orc-wh ; ; eng_src_wh ; eng_orc_wh ;
chn-src-orc-wh ; ; chn_src_wh ; chn_orc_wh ;
8 changes: 8 additions & 0 deletions comparisons/heavy_np/nomv_rtmv.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rtmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rtmv_sdp_lpp ;
ldp_spp ; ; rtmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rtmv_ldp_lpp ;
10 changes: 10 additions & 0 deletions comparisons/heavy_np/nomv_rtmv_rc_prom.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rtmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rtmv_sdp_lpp ;
ldp_spp ; ; rtmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rtmv_ldp_lpp ;
eng-src-orc-prom ; ; eng_src_prom ; eng_orc_prom ;
chn-src-orc-prom ; ; chn_src_prom ; chn_orc_prom ;
10 changes: 10 additions & 0 deletions comparisons/heavy_np/nomv_rtmv_rc_wh.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rtmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rtmv_sdp_lpp ;
ldp_spp ; ; rtmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rtmv_ldp_lpp ;
eng-src-orc-wh ; ; eng_src_wh ; eng_orc_wh ;
chn-src-orc-wh ; ; chn_src_wh ; chn_orc_wh ;
12 changes: 12 additions & 0 deletions comparisons/heavy_np/test_rtmv_rmnt.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rmnt_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rmnt_sdp_lpp ;
ldp_spp ; ; rmnt_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rmnt_ldp_lpp ;
sdp_spp ; ; nomv_sdp_spp ; rtmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rtmv_sdp_lpp ;
ldp_spp ; ; rtmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rtmv_ldp_lpp ;
7 changes: 7 additions & 0 deletions comparisons/heavy_np_old/cross_analyses/hnps_long.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
eng src wins orc ; ; eng_src_prom ; eng_orc_prom ;
chn src wins orc ; ; chn_src_prom ; chn_orc_prom ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
eng src wins orc ; ; eng_src_wh ; eng_orc_wh ;
chn src wins orc ; ; chn_src_wh ; chn_orc_wh ;
12 changes: 12 additions & 0 deletions comparisons/heavy_np_old/cross_analyses/hnps_rc_prom.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_short right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
# PP_short pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_short remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
# PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
eng src wins orc ; ; eng_src_prom ; eng_orc_prom ;
chn src wins orc ; ; chn_src_prom ; chn_orc_prom ;
12 changes: 12 additions & 0 deletions comparisons/heavy_np_old/cross_analyses/hnps_rc_wh.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_SHORT right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
PP_SHORT pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_SHORT remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
eng src wins orc ; ; eng_src_wh ; eng_orc_wh ;
chn src wins orc ; ; chn_src_wh ; chn_orc_wh ;
7 changes: 7 additions & 0 deletions comparisons/heavy_np_old/cross_analyses/hnps_short.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_SHORT right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
PP_SHORT pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_SHORT remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_SHORT right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
PP_SHORT pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_SHORT remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_SHORT right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
# PP_SHORT pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_SHORT remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
PP_LONG no move >> right move ; ; vheavy_nomv ; vheavy_rightmv ;
# PP_LONG no move >> pp move ; ; vheavy_nomv ; vheavy_ppmv ;
PP_LONG no move >> remnant move ; ; vheavy_nomv ; vheavy_remnantmv ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_SHORT right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
# PP_SHORT pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_SHORT remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_short right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
# PP_short pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_short remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
eng src wins orc ; ; eng_src_prom ; eng_orc_prom ;
chn src wins orc ; ; chn_src_prom ; chn_orc_prom ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# General format:
# name; LaTeX command; winner; loser
#
#
PP_SHORT right move >> no move ; ; nheavy_rightmv ; nheavy_nomv ;
PP_SHORT pp move >> no move ; ; nheavy_ppmv ; nheavy_nomv ;
PP_SHORT remnant >> no move ; ; nheavy_remnantmv ; nheavy_nomv ;
eng src wins orc ; ; eng_src_wh ; eng_orc_wh ;
chn src wins orc ; ; chn_src_wh ; chn_orc_wh ;
6 changes: 6 additions & 0 deletions comparisons/heavy_np_old/nomove-rightmove-reanalysis.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# General format:
# name; LaTeX command; winner; loser
#
#
right move wins no move ; ; nhv_rightmv ; nhv_nomv ;
reanalysis wins no move ; ; nhv_reanalysis ; nhv_nomv ;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# General format:
# name; LaTeX command; winner; loser
#
#
right move wins no move ; ; vhv_rightmv ; vhv_nomv ;
reanalysis wins no move ; ; vhv_reanalysis ; vhv_nomv ;
8 changes: 8 additions & 0 deletions comparisons/nomv_ppmv.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; ppmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; ppmv_sdp_lpp ;
ldp_spp ; ; ppmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; ppmv_ldp_lpp ;
8 changes: 8 additions & 0 deletions comparisons/nomv_rmnt.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rmnt_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rmnt_sdp_lpp ;
ldp_spp ; ; rmnt_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rmnt_ldp_lpp ;
8 changes: 8 additions & 0 deletions comparisons/nomv_rtmv.compare
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# General format:
# name; LaTeX command; winner; loser
#
#
sdp_spp ; ; nomv_sdp_spp ; rtmv_sdp_spp ;
sdp_lpp ; ; nomv_sdp_lpp ; rtmv_sdp_lpp ;
ldp_spp ; ; rtmv_ldp_spp ; nomv_ldp_spp ;
ldp_lpp ; ; nomv_ldp_lpp ; rtmv_ldp_lpp ;
4 changes: 2 additions & 2 deletions comparisons/rc_prom/SRC-ORC.compare
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#
eng-src-orc-prom ; ; eng_src_prom ; eng_orc_prom ;
chn-src-orc-prom ; ; chn_src_prom ; chn_orc_prom ;
kor-src-orc-prom ; ; kor_src_prom ; kor_orc_prom ;
jap-src-orc-prom ; ; jap_src_prom ; jap_orc_prom ;
# kor-src-orc-prom ; ; kor_src_prom ; kor_orc_prom ;
# jap-src-orc-prom ; ; jap_src_prom ; jap_orc_prom ;
4 changes: 2 additions & 2 deletions comparisons/rc_wh/SRC-ORC.compare
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#
eng-src-orc-wh ; ; eng_src_wh ; eng_orc_wh ;
chn-src-orc-wh ; ; chn_src_wh ; chn_orc_wh ;
kor-src-orc-wh ; ; kor_src_wh ; kor_orc_wh ;
jap-src-orc-wh ; ; jap_src_wh ; jap_orc_wh ;
# kor-src-orc-wh ; ; kor_src_wh ; kor_orc_wh ;
# jap-src-orc-wh ; ; jap_src_wh ; jap_orc_wh ;
57 changes: 57 additions & 0 deletions issue/bar.io.mgproc.forest
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
\begin{forest}
%
%%%%%%%%
% Tree %
%%%%%%%%
%
[CP, name=t
[C, name=t1, empty]
[TP, name=tnom
[TP, name=t21
[T, name=t211, empty]
[vP, name=t212
[John, name=nom]
[v', name=t2122
[kicked, name=t21221]
[Bill, name=top]
]
]
]
]
]
%%%%%%%%%%%%%%%
% Annotations %
%%%%%%%%%%%%%%%
%
\node[index] at (t) {1};
\node[outdex] at (t) {2};
%
\node[index] at (t21221) {9};
\node[outdex] at (t21221) {10};
%
\node[index] at (t2122) {6};
\node[outdex, boxed] at (t2122) {9};
%
\node[index] at (t21) {4};
\node[outdex] at (t21) {5};
%
\node[index] at (t211) {5};
\node[outdex, boxed] at (t211) {8};
%
\node[index] at (top) {9};
\node[outdex] at (top) {11};
%
\node[index] at (t212) {5};
\node[outdex] at (t212) {6};
%
\node[index] at (t1) {2};
\node[outdex] at (t1) {3};
%
\node[index] at (tnom) {2};
\node[outdex] at (tnom) {4};
%
\node[index] at (nom) {6};
\node[outdex] at (nom) {7};
%
%
\end{forest}
5 changes: 5 additions & 0 deletions issue/bar.linear
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
C; 1
John; 2121
T; 211
kicked; 21221
Bill; 21222
Loading