net.sf.textkit4j.classify.ngram
Class CharacterBigramClassifier

java.lang.Object
  extended by net.sf.textkit4j.classify.ngram.NgramClassifier
      extended by net.sf.textkit4j.classify.ngram.CharacterBigramClassifier
All Implemented Interfaces:
Classifier

public class CharacterBigramClassifier
extends NgramClassifier
implements Classifier

Classifies text using character-based bigrams.

Author:
rich

Field Summary
 
Fields inherited from class net.sf.textkit4j.classify.ngram.NgramClassifier
ngramFactory, trainingNgrams
 
Constructor Summary
CharacterBigramClassifier()
           
 
Method Summary
 void trainToClassifyAs(java.lang.String language, java.lang.String text)
           
 
Methods inherited from class net.sf.textkit4j.classify.ngram.NgramClassifier
classify, getNgramFactory, getTrainingData, setNgramFactory, setNGramFactory, setTrainingData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.textkit4j.classify.Classifier
classify
 

Constructor Detail

CharacterBigramClassifier

public CharacterBigramClassifier()
Method Detail

trainToClassifyAs

public void trainToClassifyAs(java.lang.String language,
                              java.lang.String text)
Specified by:
trainToClassifyAs in interface Classifier
Specified by:
trainToClassifyAs in class NgramClassifier


Copyright © 2009 All Eight, LLC. All Rights Reserved.