261262263264265266267
Set tokenSet = tokenizing ? (Set) objIn.readObject() : null; WeightedEditDistance editDistance = (WeightedEditDistance) objIn.readObject(); return new CompiledSpellChecker(lm,editDistance,tokenSet); }