Train with Text

Since HuggingFace makes simple the use of models, is there a ‘one line’ to train a model with a PDF text to later ask questions about it?