# Path: yaya/seg/segment.py
# def vertexs_to_terms(vertexs, word_only=False):
# def seg_to_vertexs(text):
# def seg(text):
# def traditional_seg(text):
# def simplified_to_traditional(text):
# def traditional_to_simplified(text):


from yaya.seg import segment
# coding=utf-8

__author__ = 'tony'


def print_terms(terms):
    for i, v in enumerate(terms):
        print "%s/%s" % (v[0], v[1])


def main():

    # 识别歧意词
    text = u"龚学平、张晓辉等领导说,邓颖超生前杜绝超生"
    terms = segment.seg(text)
    print_terms(terms)

    # 识别人名
    text = u"签约仪式前，秦光荣、李纪恒、仇和等一同会见了参加签约的企业家。"

# Path: yaya/seg/segment.py
# def vertexs_to_terms(vertexs, word_only=False):
# def seg_to_vertexs(text):
# def seg(text):
# def traditional_seg(text):
# def simplified_to_traditional(text):
# def traditional_to_simplified(text):


# Path: demo/demo_segment.py
from yaya.seg import segment

# coding=utf-8

__author__ = 'tony'


def print_terms(terms):
    for i, v in enumerate(terms):
        print "%s/%s" % (v[0], v[1])


def main():

    # 识别歧意词
    text = u"龚学平、张晓辉等领导说,邓颖超生前杜绝超生"
    terms = segment.seg(text)
    print_terms(terms)

    # 识别人名
    text = u"签约仪式前，秦光荣、李纪恒、仇和等一同会见了参加签约的企业家。"

    terms = segment.seg(text)