I am trying to let this table to fit in one column in my research paper, I tried to use \setlength{\tabcolsep}{1pt}
command but did not work.
\begin{table}[ht]
\setlength{\tabcolsep}{1pt}
\centering
\vspace{-0.5cm}
\begin{tabular}{|c||c|c|c|c|c|c|}
\hline
\multicolumn{7}{|c|}{Precision} \\
\hline
Classifier & Text-specific (1) & N-grams (2) & Post-specific (3) & 1 \& 2 & 1 \& 3 & All\\
\hline
\perceptron & 0.78 & 0.82 & 0.24 & 0.81 & 0.77 & 0.83\\
\decisiontree & 0.65 & 0.79 & 0.56 & 0.75 & 0.65 & 0.73\\
\svm & 0.74 & 0.72 & 0.50 & 0.80 & 0.73 & 0.85\\
\isolationforest & 0.54 & 0.51 & 0.52 & 0.53 & 0.54 & 0.53\\
\hline
\end{tabular}
\caption{Precision results of the classifiers for different feature subsets. 1 \& 2 is the combination of text-specific features
\& n-grams. 1 \& 3 is the combination of text- and post-specific
features.}
\label{table:classifier_feature_subsets_prec}
\end{table}
part of preamble:
\def\year{2018}\relax
%File: formatting-instruction.tex
\documentclass[letterpaper]{article} %DO NOT CHANGE THIS
\usepackage{aaai18} %Required
\usepackage{times} %Required
\usepackage{helvet} %Required
\usepackage{courier} %Required
\usepackage{url} %Required
\usepackage{graphicx} %Required
\usepackage[usenames,dvipsnames,table,xcdraw]{xcolor}
\usepackage{todonotes}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage{xspace}
\usepackage{pgfplots}
\usepackage{chapterbib}
\newcommand{\decisiontree}{Decision Tree\xspace}
\newcommand{\decisiontrees}{Decision Tree\xspace}
\newcommand{\svm}{One-Class~SVM\xspace}
\newcommand{\svms}{One-Class~SVMs\xspace}
\newcommand{\perceptron}{Perceptron\xspace}
\newcommand{\perceptrons}{Perceptrons\xspace}
\newcommand{\isolationforest}{Isolation Forest\xspace}
\newcommand{\isolationforests}{Isolation Forests\xspace}
\frenchspacing %Required
\setlength{\pdfpagewidth}{8.5in} %Required
\setlength{\pdfpageheight}{11in} %Required
%PDF Info Is Required:
\pdfinfo{
IEEEtran
? Which options do you pass to the document class? How are the macros\perceptron
,\decisiontree
, etc defined?aaai18
package available online somewhere? It doesn't seem to be distributed with TeXLive.