def test2(self): tags = 'adj:sg:nom:m1.m2.m3:pos|adj:sg:acc:m3:pos' xtags = morfeusz.expand_tags(tags, expand_dot=False) self.assertEqual(list(xtags), [ 'adj:sg:nom:m1.m2.m3:pos', 'adj:sg:acc:m3:pos' ])
def test3(self): tags = 'ppron3:sg:acc:f:ter:_:npraep' xtags = morfeusz.expand_tags(tags) self.assertEqual(list(xtags), [ 'ppron3:sg:acc:f:ter:akc:npraep', 'ppron3:sg:acc:f:ter:nakc:npraep' ])
def test1(self): tags = 'adj:sg:nom:m1.m2.m3:pos|adj:sg:acc:m3:pos' xtags = morfeusz.expand_tags(tags) self.assertEqual(list(xtags), [ 'adj:sg:nom:m1:pos', 'adj:sg:nom:m2:pos', 'adj:sg:nom:m3:pos', 'adj:sg:acc:m3:pos', ])
def test5(self): tags = 'ppron3:sg:acc:f:ter:_:npraep' xtags = morfeusz.expand_tags(tags, expand_underscore=False) self.assertEqual(list(xtags), [ 'ppron3:sg:acc:f:ter:_:npraep' ])
def test4(self): tags = 'ppron3:sg:acc:f:ter:_:npraep' xtags = morfeusz.expand_tags(tags, expand_dot=False) self.assertEqual(list(xtags), [ 'ppron3:sg:acc:f:ter:akc.nakc:npraep' ])