Skip to contents

This functions splits data into labeled and unlabeled data.

Usage

split_labeled_unlabeled(embedding, target)

Arguments

embedding

Object of class EmbeddedText.

target

Named factor containing all cases with labels and missing labels.

Value

Returns a list with the following components

  • embeddings_labeled: Object of class EmbeddedText containing only the cases which have labels.

  • embeddings_unlabeled: Object of class EmbeddedText containing only the cases which have no labels.

  • targets_labeled: Named factor containing the labels of relevant cases.