com.aliasi.util
Interface Compilable

All Known Subinterfaces:
LanguageModel.Dynamic
All Known Implementing Classes:
AbstractDictionary, AbstractHmmEstimator, BernoulliEstimator, BinaryLMClassifier, CharacterTokenizerFactory, CharLmHmmChunker, CharLmRescoringChunker, DictionaryEntry, DynamicLMClassifier, FixedWeightEditDistance, HmmCharLmEstimator, IndoEuropeanTokenCategorizer, IndoEuropeanTokenizerFactory, KnnClassifier, LineTokenizerFactory, LogisticRegression, LogisticRegressionClassifier, MapDictionary, MapSymbolTable, NaiveBayesClassifier, NGramBoundaryLM, NGramProcessLM, NGramTokenizerFactory, RegExChunker, RegExTokenizerFactory, SymbolTableCompiler, TfIdfClassifierTrainer, TokenizedLM, TradNaiveBayesClassifier, TrainSpellChecker, TrainTokenShapeChunker, TrieDictionary, UniformBoundaryLM, UniformProcessLM

public interface Compilable

The Compilable interface specifies a general way in which an object may be compiled to an object output. The class of the object read from the corresponding object input is determined by the implementation and not usually the same as the compilable's class.

The class AbstractExternalizable provides a helper class for implementing compilable objects. It also contains the static utility method AbstractExternalizable.compile(Compilable), which provides an in-memory compilation of an object, as well as static methods to read and write from files.

Since:
LingPipe2.0
Version:
2.0
Author:
Bob Carpenter

Method Summary
 void compileTo(ObjectOutput objOut)
          Compile this object to the specified object output.
 

Method Detail

compileTo

void compileTo(ObjectOutput objOut)
               throws IOException
Compile this object to the specified object output.

Parameters:
objOut - Object output to which this object is compiled.
Throws:
IOException - If there is an I/O error compiling the object.