Пример #1
0
 public void TestMethod2()
 {
     var words = new List<string>("This really jiggles my piggles what/ sdajlrn.. Wharts? Why? Ama i mason.".Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));
     var StanfordParser = new StanfordParsingService();
     var output = StanfordParser.Parse(words.ToArray());
     Assert.IsTrue(true);
 }
Пример #2
0
 private ThesaurusConverter()
 {
     var words = (string)new ResourceManager("Smartifyer.Resources", GetType().Assembly).GetObject("Words");
     ValidWords = words.Split(new[] { "\n","\r\n" }, StringSplitOptions.RemoveEmptyEntries).ToList();
     db = new SmartifyerContext();
     _dependency = typeof(System.Data.Entity.SqlServer.SqlProviderServices);
     Parser = new StanfordParsingService();
     Pluralizer = PluralizationService.CreateService(CultureInfo.GetCultureInfo("en-US"));
 }