def join_document(json_instance):
    """Returns the document as a single string.

    json_instance: A JSON instance from DocRED dataset
    """
    joined_sentences = [' '.join(sent) for sent in json_instance['sents']]
    document = ' '.join(joined_sentences)
    return document