Documentation of 'jsat.text.ClassificationTextDataLoader' Java class
ClassificationTextDataLoader
jsat.text

Class ClassificationTextDataLoader

  • All Implemented Interfaces:
    java.io.Serializable, TextVectorCreator


    public abstract class ClassificationTextDataLoader
    extends TextDataLoader
    This class provides a framework for loading classification datasets made of text documents as vectors. This extension uses addOriginalDocument(java.lang.String, int) instead so that the original documents have a class label associated with them. getDataSet() then returns a classification data set, where the class label for each data point is the label provided when addOriginalDocument was called.
    New vectors created with TextDataLoader.newText(java.lang.String) are inherently not part of the original data set, so do not need or receive a class label.
    See Also:
    Serialized Form
    • Constructor Detail

      • ClassificationTextDataLoader

        public ClassificationTextDataLoader(Tokenizer tokenizer,
                                            WordWeighting weighting)
        Creates a new text data loader
        Parameters:
        tokenizer - the string tokenizer to use on each input
        weighting - the weighting scheme to apply to each vector in the collection
    • Method Detail

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.