water.parser
Class SVMLightParser
java.lang.Object
water.Iced
water.parser.CustomParser
water.parser.SVMLightParser
- All Implemented Interfaces:
- java.lang.Cloneable, Freezable
public class SVMLightParser
- extends CustomParser
Parser for SVM light format.
Fields inherited from class water.parser.CustomParser |
_setup, CHAR_COMMA, CHAR_CR, CHAR_DOUBLE_QUOTE, CHAR_FF, CHAR_LF, CHAR_NULL, CHAR_SINGLE_QUOTE, CHAR_SPACE, CHAR_TAB, CHAR_VT, MAX_PREVIEW_COLS, MAX_PREVIEW_LINES |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVMLightParser
public SVMLightParser()
SVMLightParser
public SVMLightParser(CustomParser.ParserSetup setup)
clone
public SVMLightParser clone()
- Specified by:
clone
in class CustomParser
parallelParseSupported
public boolean parallelParseSupported()
- Overrides:
parallelParseSupported
in class CustomParser
guessSetup
public static CustomParser.PSetupGuess guessSetup(byte[] bits)
- Try to parse the bits as svm light format, return SVMParser instance if the input is in svm light format, null otherwise.
- Parameters:
bits
-
- Returns:
- SVMLightPArser instance or null
isCompatible
public boolean isCompatible(CustomParser p)
- Overrides:
isCompatible
in class CustomParser
parallelParse
public final CustomParser.DataOut parallelParse(int cidx,
CustomParser.DataIn din,
CustomParser.DataOut dout)
- Overrides:
parallelParse
in class CustomParser