ANNOTATION- The annotation type
public class AudioClassifier<ANNOTATION> extends AbstractAnnotator<SampleBuffer,ANNOTATION>
AudioClassifierrequires an annotator to be passed in, which in turn requires feature extractor. The feature extractor must be able to extract a
train(List) method takes a list of pairs, where the pairs are
streams mapped to annotations. Each stream represents a set of
SampleBuffers for that annotation. They are extracted into
AnnotatedObjects before being passed into the annotator for feature
|Constructor and Description|
Constructor that takes the actual annotator type to use.
|Modifier and Type||Method and Description|
Generate annotations for the given object.
Train the annotator on the given streams.
public void train(List<IndependentPair<AudioStream,ANNOTATION>> streams)
streams- The annotated streams
public Set<ANNOTATION> getAnnotations()