'Test the Stanford Word Segmenter for Chinese (default config)'

def test_stanford_segmenter_chinese(self):

    try:
        seg = StanfordSegmenter()
        seg.default_config(u'zh')
        sent = u'\u8fd9\u662f\u65af\u5766\u798f\u4e2d\u6587\u5206\u8bcd\u5668\u6d4b\u8bd5'
        segmented_sent = seg.segment(sent.split())
        assert (segmented_sent.split() == [u'\u8fd9', u'\u662f', u'\u65af\u5766\u798f', u'\u4e2d\u6587', u'\u5206\u8bcd\u5668', u'\u6d4b\u8bd5'])
    except LookupError as e:
        raise SkipTest(str(e))
