作为对我问题的后续这里
我尝试将上述问题中的 5 列表格改为 4 列表格。现在,我想将其改为 3 列表格。
这是我的 4 列表格:
\begin{table*}
\centering
\caption{ Significance test between top performing models.}
\label{table:sign_tok}
\begin{tabular}{@{}lS[table-format=4] *{2}{S[table-format=2.1]@{\;(}S[table-format=2.1(2)]@{)\;}l} @{}}
\toprule
{\thead{Source}}& {\thead{Target}} & \multicolumn{3}{l}{\thead[l]{BLEU $(\mu \pm 0.95 \%)$}} & \multicolumn{3}{l}{\thead[l]{CHRF2++ $(\mu \pm 0.95 \%)$}} \\
\midrule
TokA & TokB & 29.7 & 29.7(8) & & 53.1 & 53.1(7) \\
TokC & TokW & 31.6 & 31.6(8) & (p=0.0010)* & 52.2 & 52.2(7) & (p = 0.0010)* \\
\bottomrule
\end{tabular}
\end{table*}
我的四列表格如下:
如何删除上表的第一列,将其更改为 3 列表格
我相信改变这行乳胶代码就可以完成这项工作,但我不太明白它的作用是什么,如果有人能向我解释的话。
\begin{tabular}{@{}lS[table-format=4] *{2}{S[table-format=2.1]@{\;(}S[table-format=2.1(2)]@{)\;}l} @{}}
答案1
看看以下解决方案是否适合您:
\documentclass[twocolumn]{article}
\usepackage{booktabs, makecell, multirow}
\renewcommand\theadfont{\normalsize\bfseries}
\renewcommand\theadgape{}
\usepackage{siunitx}
\sisetup{
output-open-uncertainty = (,
output-close-uncertainty = ),
uncertainty-mode=separate
}%
\begin{document}
\begin{table*}
\centering
\caption{ Significance test between top performing models.}
\label{table:sign_tok}
\begin{tabular}{@{}lc
*{2}{S[table-format=2.1]
@{\;(}
S[table-format=2.1(2)]
@{\,)\quad }
l} @{}}
\toprule
\multicolumn{2}{c}{\thead{Segmentation}}
& \multicolumn{6}{c}{} \\
\cmidrule(r){1-2}
\thead{Source}
& \thead{Target}
& \multicolumn{3}{l}{\multirow{-2.2}*{\thead[l]{BLEU $(\mu \pm 0.95 \%)$}}}
& \multicolumn{3}{l}{\multirow{-2.2}*{\thead[l]{CHRF2++ $(\mu \pm 0.95 \%)$}}}
\\
\midrule
SPM & SPM & 29.7 & 29.7(8) & & 53.1 & 53.1(7) & \\
ATB & RAW & 31.6 & 31.6(8) & (p=0.0010)* & 52.2 & 52.2(7) & (p = 0.0010)* \\
D3 & RAW & 32.9 & 32.9(10) & (p=0.0010)* & 53.4 & 53.4(6) & (p = 0.0909) \\
SPM & RAW & 29.7 & 29.7(8) & (p=0.4256) & 50.4 & 50.4(7) & (p = 0.0010)* \\
\bottomrule
\end{tabular}
\end{table*}
\end{document}
附录 只包含三列(好吧,我宁愿包含四列):
\documentclass[twocolumn]{article}
\usepackage{booktabs, makecell, multirow}
\renewcommand\theadfont{\normalsize\bfseries}
\renewcommand\theadgape{}
\usepackage{siunitx}
\sisetup{
uncertainty-mode=separate
}%
\begin{document}
\begin{table*}
\centering
\caption{ Significance test between top performing models.}
\label{table:sign_tok}
\begin{tabular}{@{} lll @{}}
\toprule
\thead{Segmentation of\\ Source and Target}
& \thead[l]{BLEU $(\mu \pm 0.95 \%)$}
& \thead[l]{CHRF2++ $(\mu \pm 0.95 \%)$} \\
\midrule
SPM SPM & 29.7 (\num{29.7(8)}) & 53.1 (\num{53.1(7)}) \\
ATB RAW & 31.6 (\num{31.6(8)}) (p=0.0010)* & 52.2 (\num{52.2(7)}) (p = 0.0010)* \\
D3 RAW & 32.9 (\num{32.9(10)}) (p=0.0010)* & 53.4 (\num{53.4(6)}) (p = 0.0909) \\
SPM RAW & 29.7 (\num{29.7(8)}) (p=0.4256) & 50.4 (\num{50.4(7)}) (p = 0.0010)* \\
\bottomrule
\end{tabular}
\end{table*}
\end{document}
我认为有四列就更好了:
\documentclass[twocolumn]{article}
\usepackage{booktabs, makecell, multirow}
\renewcommand\theadfont{\normalsize\bfseries}
\renewcommand\theadgape{}
\usepackage{siunitx}
\sisetup{
uncertainty-mode=separate
}%
\begin{document}
\begin{table*}
\centering
\caption{ Significance test between top performing models.}
\label{table:sign_tok}
\begin{tabular}{@{} ccll @{}}
\toprule
\multicolumn{2}{c}{\thead{Segmentation}}
& \multirow{2.2}{*}{\thead[l]{BLEU $(\mu \pm 0.95 \%)$}}
& \multirow{2.2}{*}{\thead[l]{CHRF2++ $(\mu \pm 0.95 \%)$}} \\
\cmidrule(r){1-2}
\thead{Source}
& \thead{Target}
& & \\
\midrule
SPM & SPM & 29.7 (\num{29.7(8)}) & 53.1 (\num{53.1(7)}) \\
ATB & RAW & 31.6 (\num{31.6(8)}) (p=0.0010)* & 52.2 (\num{52.2(7)}) (p = 0.0010)* \\
D3 & RAW & 32.9 (\num{32.9(10)}) (p=0.0010)* & 53.4 (\num{53.4(6)}) (p = 0.0909) \\
SPM & RAW & 29.7 (\num{29.7(8)}) (p=0.4256) & 50.4 (\num{50.4(7)}) (p = 0.0010)* \\
\bottomrule
\end{tabular}
\end{table*}
\end{document}