Skip to content

Commit f7e3640

Browse files
committed
fix segment
1 parent c02c8bf commit f7e3640

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pythainlp/segment/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import
3-
__all__ = ['pyicu', 'dict']
3+
__all__ = ['pyicu', 'dict','isthai','thai']
44
try:
55
from .pyicu import segment
66
except:

pythainlp/segment/pyicu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import absolute_import,print_function
2-
from isthai import isThai
2+
from .isthai import isThai
33
import PyICU
44
# ตัดคำภาษาไทย
55
def segment(txt):

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
from setuptools import setup
55
from setuptools import find_packages
6+
import codecs
67

7-
#with open('README.rst') as readme_file:
8-
# readme = readme_file.read()
8+
with codecs.open('README.rst','r',encoding='utf-8') as readme_file:
9+
readme = readme_file.read()
910

1011
#with open('HISTORY.rst') as history_file:
1112
# history = history_file.read()
@@ -27,7 +28,7 @@
2728
name='pythainlp',
2829
version='1.0.0',
2930
description="Thai NLP in python package.",
30-
#long_description=readme,
31+
long_description=readme,
3132
author='Wannaphong Phatthiyaphaibun',
3233
author_email='wannaphong@yahoo.com',
3334
url='https://github.com/wannaphongcom/pythainlp',

0 commit comments

Comments
 (0)