private static void Initialize(CommandsConfiguration configuration) { _fileinfo = new FileInfo(configuration.Filename); _headerNumber = configuration.TargetColumn; switch (configuration.Algorythm) { case "fingerprint": default: _method = new Clasterizer(new FingerprintStringComparer()); break; case "ngram": _method = new Clasterizer(new NGramStringComparer()); break; case "phonetic": _method = new Clasterizer(new PhoneticStringComparer()); break; case "leivenstein": _method = new Clasterizer(new LeivensteinStringComparer(555D)); break; case "ppm": _method = new Clasterizer(new PpmStringComparer(1D)); break; } }
public Fixer(IClasterizer clasterizer) { _clasterizer = clasterizer; }