Textractor API textractor-720 (20091120123250)

textractor.learning
Interface SVMFeatureExporter

All Known Implementing Classes:
DoubleBagOfWordExporter, MultiClassBagOfWordExporter, MutationBagOfWordExporter, PhosphorylateBagOfWordExporter, ProteinNameBagOfWordExporter, SingleBagOfWordExporter

public interface SVMFeatureExporter

User: Fabien Campagne Date: Jan 19, 2004 Time: 1:21:31 PM


Field Summary
static int fromAnnotationClass
           
static int negativeClass
           
static int positiveClass
           
 
Method Summary
 FeatureCreationParameters createFeatureCreationParameters()
          Return corresponding type of FeatureCreationParameters.
 void firstPass(FeatureCreationParameters parameters, Collection<AnnotationSource> annotations)
          Determine what the features are.
 void secondPass(int svmClass, FeatureCreationParameters parameters, Collection<AnnotationSource> annotations, Writer writer)
          Write the features to the writer.
 

Field Detail

fromAnnotationClass

static final int fromAnnotationClass
See Also:
Constant Field Values

positiveClass

static final int positiveClass
See Also:
Constant Field Values

negativeClass

static final int negativeClass
See Also:
Constant Field Values
Method Detail

firstPass

void firstPass(FeatureCreationParameters parameters,
               Collection<AnnotationSource> annotations)
Determine what the features are.

Parameters:
annotations - Annotations to examine for words
parameters - The parameters for this export.

secondPass

void secondPass(int svmClass,
                FeatureCreationParameters parameters,
                Collection<AnnotationSource> annotations,
                Writer writer)
                throws IOException
Write the features to the writer.

Parameters:
parameters - Parameters for this export.
annotations - Annotations to convert to features.
writer - Where to write the features.
Throws:
IOException - If an error occured writing to the writer.

createFeatureCreationParameters

FeatureCreationParameters createFeatureCreationParameters()
Return corresponding type of FeatureCreationParameters.

Returns:

Textractor API textractor-720 (20091120123250)

Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.