jsat.text
Interface TextVectorCreator
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- BasicTextVectorCreator, ClassificationHashedTextDataLoader, ClassificationTextDataLoader, HashedTextDataLoader, HashedTextVectorCreator, TextDataLoader
public interface TextVectorCreator extends java.io.SerializableA Text Vector Creator is an object that can convert a text string into aVec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description VecnewText(java.lang.String input)Converts the given input text into a vector representation.VecnewText(java.lang.String input, java.lang.StringBuilder workSpace, java.util.List<java.lang.String> storageSpace)Converts the given input text into a vector representation
-
-
-
Method Detail
-
newText
Vec newText(java.lang.String input)
Converts the given input text into a vector representation.- Parameters:
input- the input string- Returns:
- a vector representation
-
newText
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- Parameters:
input- the input stringworkSpace- 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