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

Class HashedTextVectorCreator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Vec newText(java.lang.String input)
      Converts the given input text into a vector representation.
      Vec newText(java.lang.String input, java.lang.StringBuilder workSpace, java.util.List<java.lang.String> storageSpace)
      Converts the given input text into a vector representation
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HashedTextVectorCreator

        public HashedTextVectorCreator(int dimensionSize,
                                       Tokenizer tokenizer,
                                       WordWeighting weighting)
        Creates a new text vector creator that works with hash-trick features
        Parameters:
        dimensionSize - the dimension size of the feature space
        tokenizer - the tokenizer to apply to incoming strings
        weighting - the weighting process to apply to each loaded document.
    • Method Detail

      • 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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.