当前位置: 首页>>代码示例>>Python>>正文


Python conjugation.GreekConjugation类代码示例

本文整理汇总了Python中attic_greek.conjugation.GreekConjugation的典型用法代码示例。如果您正苦于以下问题:Python GreekConjugation类的具体用法?Python GreekConjugation怎么用?Python GreekConjugation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了GreekConjugation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_perfect_inf_pass

 def test_perfect_inf_pass(self):
     args = {}
     args['tense'] = 'Perfect'
     args['mood'] = 'Infinitive'
     args['voice'] = 'Passive'
     args['person'] = 'None'
     args['number'] = 'None'
     answer = u'πεπαιδεῦσθαι'
     answer = unicodedata.normalize('NFKD', answer)
     conj = GreekConjugation(verbs['paideuo'].word.word)
     self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:regular_verbs.py

示例2: test_present_inf_mid

 def test_present_inf_mid(self):
     args = {}
     args['tense'] = 'Present'
     args['mood'] = 'Infinitive'
     args['voice'] = 'Middle'
     args['person'] = 'None'
     args['number'] = 'None'
     answer = u'ἔρχεσθαι'
     answer = unicodedata.normalize('NFKD', answer)
     conj = GreekConjugation(verbs['erxomai'].word.word)
     self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:erxomai.py

示例3: test_aorist_imp_act

 def test_aorist_imp_act(self):
     args = {}
     args['tense'] = 'Aorist'
     args['mood'] = 'Imperative'
     args['voice'] = 'Active'
     answers = [u'ἔλθε', u'ἐλθέτω', u'ἔλθετε', u'ἐλθόντων']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['erxomai'].word.word)
     for case, answer in zip(imp_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:erxomai.py

示例4: test_present_inf_act

 def test_present_inf_act(self):
     args = {}
     args['tense'] = 'Present'
     args['mood'] = 'Infinitive'
     args['voice'] = 'Active'
     args['person'] = 'None'
     args['number'] = 'None'
     answer = u'παιδεύειν'
     answer = unicodedata.normalize('NFKD', answer)
     conj = GreekConjugation(verbs['paideuo'].word.word)
     self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:regular_verbs.py

示例5: test_aorist_inf_mid

 def test_aorist_inf_mid(self):
     args = {}
     args['tense'] = 'Aorist'
     args['mood'] = 'Infinitive'
     args['voice'] = 'Middle'
     args['person'] = 'None'
     args['number'] = 'None'
     answer = u'παιδεύσασθαι'
     answer = unicodedata.normalize('NFKD', answer)
     conj = GreekConjugation(verbs['paideuo'].word.word)
     self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:regular_verbs.py

示例6: test_elauno

 def test_elauno(self):
     args = {}
     args['tense'] = 'Future'
     args['mood'] = 'Indicative'
     args['voice'] = 'Active'
     answers = [u'ἐλῶ', u'ἐλᾷς', u'ἐλᾷ', u'ἐλῶμεν', u'ἐλᾶτε', u'ἐλῶσι']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['elauno'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:contracted_future.py

示例7: test_present_imp_mid

 def test_present_imp_mid(self):
     args = {}
     args['tense'] = 'Present'
     args['mood'] = 'Imperative'
     args['voice'] = 'Middle'
     answers = [u'ἔρχου', u'ἐρχέσθω', u'ἔρχεσθε', u'ἐρχέσθων']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['erxomai'].word.word)
     for case, answer in zip(imp_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:erxomai.py

示例8: test_perfect_inf_act

 def test_perfect_inf_act(self):
     args = {}
     args['tense'] = 'Perfect'
     args['mood'] = 'Infinitive'
     args['voice'] = 'Active'
     args['person'] = 'None'
     args['number'] = 'None'
     answer = u'ἐληλυθέναι'
     answer = unicodedata.normalize('NFKD', answer)
     conj = GreekConjugation(verbs['erxomai'].word.word)
     self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:erxomai.py

示例9: test_present_imp_act

 def test_present_imp_act(self):
     args = {}
     args['tense'] = 'Present'
     args['mood'] = 'Imperative'
     args['voice'] = 'Active'
     answers = [u'παίδευε', u'παιδευέτω', u'παιδεύετε', u'παιδευόντων']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['paideuo'].word.word)
     for case, answer in zip(imp_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:11,代码来源:regular_verbs.py

示例10: test_maxomai

 def test_maxomai(self):
     args = {}
     args['tense'] = 'Future'
     args['mood'] = 'Indicative'
     args['voice'] = 'Middle' # TODO: Should be deponent...
     answers = [u'μαχοῦμαι', u'μαχεῖ', u'μαχεῖται', u'μαχούμεθα',
             u'μαχεῖσθε', u'μαχοῦνται']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['maxomai'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:12,代码来源:contracted_future.py

示例11: test_maxomai

 def test_maxomai(self):
     args = {}
     args['tense'] = 'Aorist'
     args['mood'] = 'Indicative'
     args['voice'] = 'Middle'
     answers = [u'ἐμαχεσάμην', u'ἐμαχέσω', u'ἐμαχέσατο', u'ἐμαχεσάμεθα',
             u'ἐμαχέσασθε', u'ἐμαχέσαντο']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['maxomai'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:12,代码来源:deponent.py

示例12: test_present_ind_act

 def test_present_ind_act(self):
     args = {}
     args['tense'] = 'Present'
     args['mood'] = 'Indicative'
     args['voice'] = 'Active'
     answers = [u'παιδεύω', u'παιδεύεις', u'παιδεύει', u'παιδεύομεν',
             u'παιδεύετε', u'παιδεύουσι']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['paideuo'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:12,代码来源:regular_verbs.py

示例13: test_poieo_present_ind_mid

 def test_poieo_present_ind_mid(self):
     args = {}
     args['tense'] = 'Present'
     args['mood'] = 'Indicative'
     args['voice'] = 'Middle'
     answers = [u'ποιοῦμαι', u'ποιεῖ', u'ποιεῖται', u'ποιούμεθα',
             u'ποιεῖσθε', u'ποιοῦνται']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['poieo'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:12,代码来源:contracted.py

示例14: test_future_opt_pass

 def test_future_opt_pass(self):
     args = {}
     args['tense'] = 'Future'
     args['mood'] = 'Optative'
     args['voice'] = 'Passive'
     answers = [u'παιδευθησοίμην', u'παιδευθήσοιο', u'παιδευθήσοιτο',
             u'παιδευθησοίμεθα', u'παιδευθήσοισθε', u'παιδευθήσοιντο']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['paideuo'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:12,代码来源:regular_verbs.py

示例15: test_aorist_opt_pass

 def test_aorist_opt_pass(self):
     args = {}
     args['tense'] = 'Aorist'
     args['mood'] = 'Optative'
     args['voice'] = 'Passive'
     answers = [u'παιδευθείην', u'παιδευθείης', u'παιδευθείη',
             u'παιδευθείημεν', u'παιδευθείητε', u'παιδευθείησαν']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['paideuo'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:12,代码来源:regular_verbs.py


注:本文中的attic_greek.conjugation.GreekConjugation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。