def sentences_to_text(sentences, labels, sentence_sep="\n\n", word_sep="\n", label_sep="\t"):
    """
    Converts sentences (a list of list of words) and labels to text.
    """
    text = sentence_sep.join(
        [word_sep.join([w + label_sep + l for w, l in zip(sentence, sentence_labels)]) for sentence, sentence_labels in
         zip(sentences, labels)])
    return text