2
% Please add the following required packages to your document preamble:


% \usepackage[normalem]{ulem}


% \useunder{\uline}{\ul}{}


\begin{table}[]

\begin{tabular}{ll}


'Classes &
  Guidelines \\
Political Hate-speech &


  \begin{tabular}[c]{@{}l@{}}A   tweet or phrase belongs to the 

‘‘Political Hate-speech’’ class assuming it   holds anyone or more of the following condition: \hline Abuse:   If a tweet contains any hate word about a political individual, political party, government or if   it targets the followers of a specific political party. For example, “Ap ka baap nawaz bhagora chor   h” translated in English as {[}Your father Nawaz is a truant and thief{]}.Some other offensive terms can be “youthia”   and “patwari” targeting the supporters of specific political parties.\end{tabular} \\    
Neutral &
  A tweet or phrase belongs to the ‘‘Neutral” class if   it does not hold any of the characteristics described for the Political   Hate-speech class, for example, ‘‘Wsa hi acha lgta ha mujha nawaz sharef”   translated in English as {[}I just like nawaz sharef{]}. \\
Offensive &  
  A tweet or phrase that belongs to the ‘‘Political   Hate-speech’’ class will further be classified as “Offensive”. If the tweet contains abusive words or   symbols promotes hostility, ignites anger, or incites harm to an   individual Political entity or a group of people that belong to a political   party or that support a political profile. For example, “Bhounktey rahhooooo   nawaz chor” translated in English as {[}Keep on barking nawaz thief{]}. \\
Sarcasm/ low-offensive &  
  \begin{tabular}[c]{@{}l@{}}A tweet or phrase that belongs to the ‘‘Political   Hate-speech’’ class will further be classified as “Sarcasm/ low-offensive”. If the tweet mocks and   convery contempt against a political individual, political party and   supporter of a specific political profile yet doesn’t contain explicit hate words.\\    \\ For example,” Bilkul   thek kaha ap nay nawaz Shareef nay boht investment ki h hmare adliya pay”   translated in English as {[} You are right, Nawaz shareef has invested a lot on   our judiciary system{]}.\end{tabular}  
\end{tabular}  
\end{table} 

It appears like this in latex

David Carlisle
  • 757,742
Samia Aziz
  • 49
  • 4

2 Answers2

4

The l column type does not allow automatic line breaking. I would like to suggest you (a) get rid of the nested tabular environments and (b) employ a single tabularx environment, with the X column type in use for the second column.

enter image description here

\documentclass[12pt,a4paper]{report}
\usepackage[margin=2.5cm]{geometry} % set page parameters as needed
\usepackage{tabularx} % for tabularx env. and 'X' col. type
\usepackage{booktabs} % for \midrule and \addlinespace macros
\usepackage{ragged2e} % for \RaggedRight macro
\newcolumntype{L}{>{\RaggedRight}X} % suspend full justification in L-type col.

\begin{document}

\begin{table}[htbp] \begin{tabularx}{\textwidth}{@{} l L @{}} % occupy full width of text block Classes & Guidelines \ \midrule Political hate-speech & A tweet or phrase belongs to the political hate-speech'' class if it satisfies one or more of the following conditions. \\ \addlinespace & Abuse: If a tweet contains any hate word about a political individual, political party, government or if it targets the followers of a specific political party. For example,Ap ka baap nawaz bhagora chor h'' translated in English as [Your father Nawaz is a truant and thief]. Some other offensive terms can be youthia'' andpatwari'' targeting the supporters of specific political parties. \ \addlinespace Neutral & A tweet or phrase belongs to the neutral'' class if it does not hold any of the characteristics described for the political hate-speech class, for example,Wsa hi acha lgta ha mujha nawaz sharef'' translated in English as [I just like nawaz sharef]. \ \addlinespace Offensive & A tweet or phrase that belongs to the political hate-speech'' class will further be classified asoffensive'' if the tweet contains abusive words or symbols promotes hostility, ignites anger, or incites harm to an individual Political entity or a group of people that belong to a political party or that support a political profile. For example, Bhounktey rahhooooo nawaz chor'' translated in English as [Keep on barking nawaz thief]. \\ \addlinespace Sarcasm\slash low-offensive & A tweet or phrase that belongs to thepolitical hate-speech'' class will further be classified as sarcasm\slash low-offensive''. If the tweet mocks and conveys contempt against a political individual, political party and supporter of a specific political profile yet doesn't contain explicit hate words. \\ \addlinespace & For example,Bilkul thek kaha ap nay nawaz Shareef nay boht investment ki h hmare adliya pay'' translated in English as [You are right, Nawaz shareef has invested a lot in our judiciary system]. \end{tabularx} \end{table} \end{document}

Mico
  • 506,678
1

With use of tabularray and microtype packages where for the second column is used X[j] column type which allow automatic line breaking and justifying of text:

enter image description here

\documentclass[12pt,a4paper]{report}
\usepackage[margin=2.5cm]{geometry}

\usepackage{microtype} \usepackage{tabularray} \UseTblrLibrary{booktabs} \usepackage{ragged2e} % for \RaggedRight macro

\begin{document}

\begin{table}[htbp] \begin{tblr}{colspec={@{} l X[j] @{}}, row{2-Z}={rowsep=3pt} } Classes & Guidelines \ \midrule Political hate-speech & A tweet or phrase belongs to the political hate-speech'' class if it satisfies one or more of the following conditions. \\ & Abuse: If a tweet contains any hate word about a political individual, political party, government or if it targets the followers of a specific political party. For example,Ap ka baap nawaz bhagora chor h'' translated in English as [Your father Nawaz is a truant and thief]. Some other offensive terms can be youthia'' andpatwari'' targeting the supporters of specific political parties. \ Neutral & A tweet or phrase belongs to the neutral'' class if it does not hold any of the characteristics described for the political hate-speech class, for example,Wsa hi acha lgta ha mujha nawaz sharef'' translated in English as [I just like nawaz sharef]. \ Offensive & A tweet or phrase that belongs to the political hate-speech'' class will further be classified asoffensive'' if the tweet contains abusive words or symbols promotes hostility, ignites anger, or incites harm to an individual Political entity or a group of people that belong to a political party or that support a political profile. For example, Bhounktey rahhooooo nawaz chor'' translated in English as [Keep on barking nawaz thief]. \\ Sarcasm\slash low-offensive & A tweet or phrase that belongs to thepolitical hate-speech'' class will further be classified as sarcasm\slash low-offensive''. If the tweet mocks and conveys contempt against a political individual, political party and supporter of a specific political profile yet doesn't contain explicit hate words. \\ & For example,Bilkul thek kaha ap nay nawaz Shareef nay boht investment ki h hmare adliya pay'' translated in English as [You are right, Nawaz shareef has invested a lot in our judiciary system]. \end{tblr} \end{table}

\end{document}

enter image description here

Zarko
  • 296,517