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


Python GreekConjugation.conjugate方法代码示例

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


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

示例1: test_aischunomai

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
    def test_aischunomai(self):
        args = {}
        args['tense'] = 'Perfect'
        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['aischunomai'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Perfect'
        args['mood'] = 'Infinitive'
        args['voice'] = 'Middle'
        args['person'] = 'None'
        args['number'] = 'None'
        answer = u'ᾐσχύνθαι'
        answer = unicodedata.normalize('NFKD', answer)
        conj = GreekConjugation(verbs['aischunomai'].word.word)
        self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Pluperfect'
        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['aischunomai'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:37,代码来源:consonant_stems.py

示例2: test_grafo

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
    def test_grafo(self):
        args = {}
        args['tense'] = 'Perfect'
        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['grafo'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Perfect'
        args['mood'] = 'Infinitive'
        args['voice'] = 'Middle'
        args['person'] = 'None'
        args['number'] = 'None'
        answer = u'γεγράφθαι'
        answer = unicodedata.normalize('NFKD', answer)
        conj = GreekConjugation(verbs['grafo'].word.word)
        self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Pluperfect'
        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['grafo'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:37,代码来源:consonant_stems.py

示例3: test_keleuo

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
    def test_keleuo(self):
        args = {}
        args['tense'] = 'Perfect'
        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['keleuo'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Perfect'
        args['mood'] = 'Infinitive'
        args['voice'] = 'Middle'
        args['person'] = 'None'
        args['number'] = 'None'
        answer = u'κεκελεῦσθαι'
        answer = unicodedata.normalize('NFKD', answer)
        conj = GreekConjugation(verbs['keleuo'].word.word)
        self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Pluperfect'
        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['keleuo'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:37,代码来源:consonant_stems.py

示例4: test_aggello

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
    def test_aggello(self):
        args = {}
        args['tense'] = 'Perfect'
        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['aggello'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Perfect'
        args['mood'] = 'Infinitive'
        args['voice'] = 'Middle'
        args['person'] = 'None'
        args['number'] = 'None'
        answer = u'ἠγγέλθαι'
        answer = unicodedata.normalize('NFKD', answer)
        conj = GreekConjugation(verbs['aggello'].word.word)
        self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Pluperfect'
        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['aggello'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:37,代码来源:consonant_stems.py

示例5: test_elegxo

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
    def test_elegxo(self):
        args = {}
        args['tense'] = 'Perfect'
        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['elegxo'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Perfect'
        args['mood'] = 'Infinitive'
        args['voice'] = 'Middle'
        args['person'] = 'None'
        args['number'] = 'None'
        answer = u'ἐληλέγχθαι'
        answer = unicodedata.normalize('NFKD', answer)
        conj = GreekConjugation(verbs['elegxo'].word.word)
        self.failUnlessEqual(conj.conjugate(**args), [answer])

        args = {}
        args['tense'] = 'Pluperfect'
        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['elegxo'].word.word)
        for case, answer in zip(verb_cases, answers):
            args.update(case)
            self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:37,代码来源:consonant_stems.py

示例6: test_present_inf_mid

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:erxomai.py

示例7: test_aorist_imp_act

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:erxomai.py

示例8: test_present_inf_act

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:regular_verbs.py

示例9: test_elauno

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:contracted_future.py

示例10: test_present_imp_mid

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:erxomai.py

示例11: test_present_imp_act

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:regular_verbs.py

示例12: test_aorist_inf_mid

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:regular_verbs.py

示例13: test_perfect_inf_act

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:erxomai.py

示例14: test_perfect_inf_pass

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 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,代码行数:13,代码来源:regular_verbs.py

示例15: test_aorist_opt_act

# 需要导入模块: from attic_greek.conjugation import GreekConjugation [as 别名]
# 或者: from attic_greek.conjugation.GreekConjugation import conjugate [as 别名]
 def test_aorist_opt_act(self):
     args = {}
     args['tense'] = 'Aorist'
     args['mood'] = 'Optative'
     args['voice'] = 'Active'
     answers = [u'ἔλθοιμι', u'ἔλθοις', u'ἔλθοι', u'ἔλθοιμεν',
             u'ἔλθοιτε', u'ἔλθοιεν']
     answers = [unicodedata.normalize('NFKD', word) for word in answers]
     conj = GreekConjugation(verbs['erxomai'].word.word)
     for case, answer in zip(verb_cases, answers):
         args.update(case)
         self.failUnlessEqual(conj.conjugate(**args), [answer])
开发者ID:matt-gardner,项目名称:language-study,代码行数:14,代码来源:erxomai.py


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