\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{tikzmark}

\begin{document}

% this was used in my SVM and Transformers lecture slides
	
\textit{The \tikzmarknode{word1}{restaurant} refused to serve me a ham sandwich because it only cooks vegetarian food. In the end, they just gave me two slices of bread. \tikzmarknode{word2}{Their} ambiance was just as good as the food and service.}

\begin{tikzpicture}[remember picture, overlay]
	% draw specifying angles
	\draw[,->,thick] (word1.north) to [in=300,out=90] (word2.south);
	% draw using Bezier points
	\draw[,->,thick] (word1.north) .. controls (18,6) and (13,-3) .. (word2.south);
	\draw (18,6) -- (13,-3);
\end{tikzpicture}

\end{document}
