All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class jsvm.LabeledTestCaseParser

java.lang.Object
    |
    +----jsvm.OrigSvmParser
            |
            +----jsvm.LabeledTestCaseParser

public class LabeledTestCaseParser
extends OrigSvmParser
Parses a data file(.lts) containing test examples.  Each test example
starts with a label followed by a list of feature/value pairs.  For
an instance:
(label) (feature:value)...
(label) (feature:value)...
(label) (feature:value)...
With the label information, the accuracy of SVM classification can be
calculated.

Version:
$Id$
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)

Constructor Index

 o LabeledTestCaseParser()

Method Index

 o parse(InputStream)
Parses a data file containing multiple sets of training examples.

Constructors

 o LabeledTestCaseParser
public LabeledTestCaseParser()

Methods

 o parse
public TrainingSet parse(InputStream in) throws IOException
Parses a data file containing multiple sets of training examples. Creates and initializes data structure in Java.

Parameters:
in - The inputstream containing the data to be parsed.
Returns:
The data structure containing the data information.
Overrides:
parse in class OrigSvmParser

All Packages  Class Hierarchy  This Package  Previous  Next  Index