One approach to define f θ might be to manually define features of interest, such as stylometric or surface features (Solorio et al., 2014;Sari et al., 2018).
when large amounts of data are available, it is preferable to use a data-driven approach to representation learning.