# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import sys
try:
    import attacut
except ImportError:
    '''ในกรณีที่ยังไม่ติดตั้ง attacut ในระบบ'''
    from pythainlp.tools import install_package
    install_package('attacut')
    try:
        import attacut
    except ImportError:
        sys.exit('Error ! using pip install attacut')


def segment(text, model='attacut-sc'):
    # TODO
    # Implement model options: 'attacut-sc'/'attacut-c'
    Tokenizer = attacut.Tokenizer(model=model)
    return Tokenizer.tokenize(text)

@@ -388,165 +388,29 @@
 text
-, model='attacut-sc'):%0A    # TODO%0A    # Implement model options: 'attacut-sc'/'attacut-c'%0A    Tokenizer = attacut.Tokenizer(model=model)%0A    return Tokenizer
+):%0A    return attacut
 .tok

use high level api in attacut