code: public LabeledDatum<HString> asLabeledData(@NonNull Function<HString, ?> labelFunction) {
        return LabeledDatum.of(labelFunction.apply(this), this);
     }
docs: Creates a labeled data point from this HString applying the given label function to determine the label, i.e.
  class.
  
  @param labelFunction the label function to determine the label (or class) of the data point (e.g. part-of-speech,
  sentiment, etc.)
  @return the labeled datum