예제 #1
0
파일: implementor.py 프로젝트: dim-an/gnTai
 def __question_to_string(self):
     if self.concept.action.word is to_be:
         return words2text([to_be.to_string(**self.concept.get_action_form()),
                          str(self.concept.subject.english_implement()),
                          str(self.concept.action.english_implement(without_verb=True))
                          ]).capitalize() + '?'
     else:
         return  words2text([to_do.to_string(**self.concept.get_action_form()),
                         str(self.concept.subject.english_implement()),
                         str(self.concept.action.english_implement())
                         ]).capitalize() + '?' 
예제 #2
0
파일: implementor.py 프로젝트: dim-an/gnTai
 def __str__(self):
     if self.form.get('without_verb', False):
         word_str = ''
     elif self.concept.negative:
         if self.concept.word is to_be:
             word_str = ' '.join([self.concept.word.to_string(**self.form), str(Not())])
         else:
             word_str = ' '.join(
                     [to_do.to_string(**self.form),
                     str(Not()),
                     self.concept.word.to_string()]
                     )
     else:
         word_str = self.concept.word.to_string(**self.form)
     direct_obj_str = self.objects_string()
     res = ' '.join([word_str, direct_obj_str])
     return res.strip()