\begin{table}[h]
\centering
\caption{Total Number of Each Tag in Our Gazetteer}
\begin{tabularx}{\textwidth}{cXc}
\toprule
\textbf{NER Tags} & \textbf{Number of Data} \\
\midrule
PER & 26,296 \\
CW & 20,446 \\
LOC & 16,617 \\
CORP & 13,737 \\
GRP & 10,517 \\
PROD & 6,136 \\
\bottomrule
\end{tabularx}
\label{tab:tagsingazz}
\end{table}
答案1
欢迎来到 TeX.SE!
呵呵,不寻常的需求 :-)。通过使用tabularray
带有库 ˙booktabs and
siunitx instead of
tabularx` 的包,可以实现以下结果:
带有相当简单的表格代码。
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\begin{document}
\begin{table}[ht]
\caption{Total Number of Each Tag in Our Gazetteer}
\label{tab:tagsingazz}
\begin{tblr}{colspec = {X[l] X[c, si = {table-format=2.3}]},
cell{2-Z}{1} = {cmd=\hspace{0.45\linewidth}},
row{1} = {guard, font=\bfseries, c}
}
\toprule
NER Tags & Number of Data \\
\midrule
PER & 26,296 \\
CW & 20,446 \\
LOC & 16,617 \\
CORP & 13,737 \\
GRP & 10,517 \\
PROD & 6,136 \\
\bottomrule
\end{tblr}
\end{table}
\end{document}