def process_dataset(documents):
    """
        Process dataset documents (samples) and create targets
        :param documents: list of Document objects
        :return: samples, targets
        """
    samples = []
    targets = []
    for document in documents:
        samples.append(document.tokens)
        targets.append(document.tags)

    del documents
    return samples, targets