def complete_sentence(learn, start_phrase, n_words=30, n_samples=3, temp=.75):
    """Generate text from a given input. This is a decent way to get a glimpse
    of how a language model is doing.

    Parameters
    ----------
    learn: fastai Learner
    start_phrase: str
        The prompt (start of a sentence) that you want the model to complete.
    n_words: int
        Number of words to generate after the given prompt.
    n_samples: int
        Number of sample sentences to generate.
    temp: float

    Returns
    -------
    list[str]: Each item is one completed sentence.
    """
    return [learn.predict(start_phrase, n_words, temperature=temp)
            for _ in range(n_samples)]