示例#1
0
    def test_map1(self):
        gloss = 'sm2s'
        actual = Mp.map(gloss)
        expected = '2SG.SBJ'

        self.assertEqual(actual, expected)
示例#2
0
    def test_map4(self):
        gloss = 'thing(9,10)'
        actual = Mp.map(gloss)
        expected = ''

        self.assertEqual(actual, expected)
示例#3
0
    def test_map2(self):
        gloss = 'm^i'
        actual = Mp.map(gloss)
        expected = 'IMP'

        self.assertEqual(actual, expected)
示例#4
0
    def test_map3(self):
        gloss = 'if'
        actual = Mp.map(gloss)
        expected = 'COND'

        self.assertEqual(actual, expected)
示例#5
0
文件: cleaner.py 项目: acqdiv/acqdiv
 def clean_gloss(cls, gloss):
     return SesothoGlossMapper.map(gloss)