Exemplo n.º 1
0
        public void ParseRandomStatements()
        {
            var nlpService = new NlpService();

            int count = 100;

            var statements = Enumerable.Range(0, count).Select((x) =>
                                                               RandomPhraseService.GetRandomPhraseFromResource(Assembly.GetExecutingAssembly(), "Data.Kids.txt")
                                                               ).ToList();

            Run(count, nlpService, statements);
        }
Exemplo n.º 2
0
        public void GetRandomStatement()
        {
            var statement = RandomPhraseService.GetRandomPhraseFromResource();

            Assert.IsNotNull(statement);
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            var statement = RandomPhraseService.GetRandomPhraseFromResource();

            return(View("Index", statement as object));//throw new System.NotImplementedException();
        }