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

Class HashedTextDataLoader

    • Constructor Detail

      • HashedTextDataLoader

        public HashedTextDataLoader(int dimensionSize,
                                    Tokenizer tokenizer,
                                    WordWeighting weighting)
    • Method Detail

      • getDataSet

        public DataSet getDataSet()
        Returns a new data set containing the original data points that were loaded with this loader.
        Returns:
        an appropriate data set for this loader
      • newText

        public Vec newText(java.lang.String input)
        Description copied from interface: TextVectorCreator
        Converts the given input text into a vector representation.
        Specified by:
        newText in interface TextVectorCreator
        Parameters:
        input - the input string
        Returns:
        a vector representation
      • newText

        public Vec newText(java.lang.String input,
                           java.lang.StringBuilder workSpace,
                           java.util.List<java.lang.String> storageSpace)
        Description copied from interface: TextVectorCreator
        Converts the given input text into a vector representation
        Specified by:
        newText in interface TextVectorCreator
        Parameters:
        input - the input string
        workSpace - an already allocated (but empty) string builder than can be used as a temporary work space.
        storageSpace - an already allocated (but empty) list to place the tokens into
        Returns:
        a vector representation
      • getTextVectorCreator

        public TextVectorCreator getTextVectorCreator()
        Returns the TextVectorCreator used by this data loader to convert documents into vectors.
        Returns:
        the text vector creator used by this class

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.