public PinglishConverter(PinglishConverterConfig config, PruneType pruneType, bool supportTranslating) { if (supportTranslating) { throw new NotImplementedException("Currently not supported"); } ReadExceptionWords(config.ExceptionWordDicPath); _preProcessor = new PreProcessor(); // TODO: Translation is not supported for now _translator = supportTranslating ? new Translator(config.EnToPeDicPath) : new Translator(); if (PruneType.Stem == pruneType) { _transliterater = new PinglishMapping(config.XmlDataPath, config.StemDicPath, pruneType); } else { _transliterater = new PinglishMapping(config.XmlDataPath, config.GoftariDicPath, pruneType); } }
private readonly ITransliterator _transliterater; //this present Transliterator Object public PinglishConverter(PinglishConverterConfig config, PruneType pruneType) : this(config, pruneType, false) { }