# Plot for practical experience paper.
# Updated 16-4-93
#
set term latex
set nokey
#
# Degree of ambiguity plots
#
set data style points
set output "plot/ambig2.tex"
# set title "Ambiguous word accuracy (\%) vs. Average number of hypotheses" 0,0
plot 'plot/ambig' using 2:1 "%*s %f %*f %f %*f" title ""
#
set output "plot/ambig3.tex"
# set title "Ambiguous word accuracy (\%) vs. Average branching factor" 0,0
plot 'plot/ambig' using 2:1 "%*s %f %*f %*f %f" title ""
# 
set output "plot/tagsetb.tex"
# set title "Ambiguous word accuracy (\%) vs. Size of tagset" 0,0
plot 'plot/tagset.b' using "%*f %*f %f %*f %f %*f %*f %*f" title ""
#
# set data style dots
set data style lines
set output "plot/err.rp.tex"
# set title "Hypothesis score vs. total observations (correct)"
plot 'plot/err.rp1' using "%f %*s %f" title ""
#
# set data style dots
set data style lines
set output "plot/err.rm.tex"
# set title "Hypothesis score vs. total observations (incorrect)"
plot 'plot/err.rm1' using "%f %*s %f" title ""
#
# Set the xrange for this one, to force enough room for the key. (This
# means knowing roughly what the values in the file are!)
set data style points
set key 8.4,94.9
# set yrange [91.5:95]
set output "plot/bwerr1.tex"
# set title "Ambiguous word accuracy vs. iterations at various thresholds D0+T0"
plot 'plot/bw1.err' using "%f %f" title 'None','plot/bw1.err' using "%f %*f %f" title '0.562', 'plot/bw1.err' using "%f %*f %*f %f" title '0.631', 'plot/bw1.err' using "%f %*f %*f %*f %f" title '0.777', 'plot/bw1.err' using "%f %*f %*f %*f %*f %f" title '0.897'
set autoscale
#
set key 8.4,90
set output "plot/bwerr2.tex"
# set title "Ambiguous word accuracy vs. iterations at various thresholds D2+T0"
plot 'plot/bw2.err' using "%f %f" title 'None','plot/bw2.err' using "%f %*f %f" title '0.562', 'plot/bw2.err' using "%f %*f %*f %f" title '0.631', 'plot/bw2.err' using "%f %*f %*f %*f %f" title '0.777', 'plot/bw2.err' using "%f %*f %*f %*f %*f %f" title '0.897'
set autoscale
#
# Move the key on this one to get it out of the way of the data
set key 8.4,72
set output "plot/bwerr3.tex"
# set title "Ambiguous word accuracy vs. iterations at various thresholds D3+T1"
plot 'plot/bw3.err' using "%f %f" title 'None','plot/bw3.err' using "%f %*f %f" title '0.562', 'plot/bw3.err' using "%f %*f %*f %f" title '0.631', 'plot/bw3.err' using "%f %*f %*f %*f %f" title '0.777', 'plot/bw3.err' using "%f %*f %*f %*f %*f %f" title '0.897'
#
# Perplexity plots
set key
set data style lines
set yrange [70:100]
set output "plot/perp0.tex"
plot 'plot/perp' using "%f %f" title 'D0+T0', 'plot/perp' using "%f %*f %*f %f" title 'D2+T0', 'plot/perp' using "%f %*f %*f %*f %*f %f" title 'D3+T1'
#
set output "plot/perp1.tex"
plot 'plot/perp' using "%f %*f %f" title 'D0+T0', 'plot/perp' using "%f %*f %*f %*f %f" title 'D2+T0', 'plot/perp' using "%f %*f %*f %*f %*f %*f %f" title 'D3+T1'
#
set nokey
set data style points
# set xrange [6.775:6.785]
set output "plot/perp2.tex"
plot 'plot/perp' using 2:1 "%*f %f %f"
#
# set xrange [6.775:6.805]
set output "plot/perp3.tex"
plot 'plot/perp' using 2:1 "%*f %*f %*f %f %f"
#
# set xrange [5.64:5.80]
set output "plot/perp4.tex"
plot 'plot/perp' using 2:1 "%*f %*f %*f %*f %*f %f %f"
