public ActualWordsHandler(POSTaggerType type)
        {
            var factory = MainContainerFactory.Setup(new ServiceCollection())
                          .Config(configuration =>
            {
                var resources     = configuration.GetConfiguration("Resources");
                var resourcesPath = Path.Combine(TestContext.CurrentContext.TestDirectory, resources);
                configuration.SetConfiguration("Resources", resourcesPath);
            })
                          .Splitter(type)
                          .SetupNullCache();

            container = factory.Create();
            Container = container.StartSession();
            Loader    = new DocumentLoader(Container);
        }
        public ActualWordsHandler(POSTaggerType type)
        {
            var factory = MainContainerFactory.Setup(new ServiceCollection())
                          .Config()
                          .Splitter(type, true)
                          .AddNER(
                new DictionaryNERResolver(
                    new Dictionary <string, string>
            {
                { "XXX", "XXX" }
            }))
                          .SetupNullCache();

            container = factory.Create();
            Container = container.StartSession();
            Loader    = new DocumentLoader(Container);
        }
 public void Reset()
 {
     Container?.Dispose();
     Container = container.StartSession();
 }
 public void Reset()
 {
     Container = container.StartSession();
 }