Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/d/i/Dialogs-0.13/src/dialogs/verbalization/verbalization_test.py   Dialogs(Download)
    def test_verbalize1(self):
        logger.info("\n##################### test_verbalize1: simple statements ########################\n")
        myP = Parser()
        stmt = "The cup is on the desk."
        sentence = myP.parse(stmt)
 
        stmt = "The green bottle is next to Joe."
        sentence = myP.parse(stmt)
        res = self.dialog._verbalizer.verbalize(sentence)
        logger.info('>> input: ' + stmt)
 
        stmt = "Are you a robot?"
        sentence = myP.parse(stmt)
        res = self.dialog._verbalizer.verbalize(sentence)
        logger.info('>> input: ' + stmt)
 
        stmt = "Put the yellow banana on the shelf."
        sentence = myP.parse(stmt)
        res = self.dialog._verbalizer.verbalize(sentence)
        logger.info('>> input: ' + stmt)
 
        stmt = "Give me the green banana."
        sentence = myP.parse(stmt)
        res = self.dialog._verbalizer.verbalize(sentence)
        logger.info('>> input: ' + stmt)