protected void Configure(BuilderBase builder) { builder.LoadDictionaries(); TokenFactory = builder.TokenFactory; TokenInfoDictionary = builder.TokenInfoDictionary; UnknownDictionary = builder.UnknownDictionary; UserDictionary = builder.UserDictionary; InsertedDictionary = builder.InsertedDictionary; ViterbiBuilder = new ViterbiBuilder(builder.DoubleArrayTrie, TokenInfoDictionary, UnknownDictionary, UserDictionary, builder.Mode); ViterbiSearcher = new ViterbiSearcher(builder.Mode, builder.ConnectionCosts, UnknownDictionary, builder.Penalties); ViterbiFormatter = new ViterbiFormatter(builder.ConnectionCosts); Split = builder.Split; InitDictionaryMap(); }