def test_stanford_segmenter_chinese(self):
    '\n        Test the Stanford Word Segmenter for Chinese (default config)\n        '
    try:
        seg = StanfordSegmenter()
        seg.default_config('zh')
        sent = u'这是斯坦福中文分词器测试'
        segmented_sent = seg.segment(sent.split())
        assert (segmented_sent.split() == ['这', '是', '斯坦福', '中文', '分词器', '测试'])
    except LookupError as e:
        pytest.skip(str(e))
Test the Stanford Word Segmenter for Chinese (default config)
def test_stanford_segmenter_chinese(self):
    '\n        \n        '
    try:
        seg = StanfordSegmenter()
        seg.default_config('zh')
        sent = u'这是斯坦福中文分词器测试'
        segmented_sent = seg.segment(sent.split())
        assert (segmented_sent.split() == ['这', '是', '斯坦福', '中文', '分词器', '测试'])
    except LookupError as e:
        pytest.skip(str(e))