Skip to content

Commit

Permalink
fixed unicode in python3
Browse files Browse the repository at this point in the history
bumpversion 0.2.2->0.2.3
  • Loading branch information
SeanLee97 authored and --replace-all committed Nov 23, 2019
1 parent f23843f commit 9cfa861
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[bumpversion]
files = setup.py xmnlp/__init__.py
current_version = 0.2.2
current_version = 0.2.3
commit = True
tag = True

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<p align='center'>/ xmnlp /</p>
<p align='center'>小明 NLP — 轻量级中文自然语言处理工具</p>
<p align='center'> A Lightweight Chinese Natural Language Processing Toolkit</p>
<p align='center'>v 0.2.2</p>
<p align='center'>v 0.2.3</p>

<p align='center'><strong>R.I.P</strong> 0.2.2版是 xmnlp 最后一个兼容 Python 2.7 的版本</div>
<p align='center'><strong>R.I.P</strong> 0.2.3版是 xmnlp 最后一个兼容 Python 2.7 的版本</div>

[![pypi](https://img.shields.io/badge/pypi-v0.2.2-blue.svg)](https://pypi.org/project/xmnlp/)
[![pypi](https://img.shields.io/badge/pypi-v0.2.3-blue.svg)](https://pypi.org/project/xmnlp/)
![python version](https://img.shields.io/badge/python-2%2C3-orange.svg)
![support os](https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-yellow.svg)
[![GitHub license](https://img.shields.io/github/license/SeanLee97/xmnlp.svg)](https://github.com/SeanLee97/xmnlp/blob/master/LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sys.setdefaultencoding('utf8')


__version__ = '0.2.2'
__version__ = '0.2.3'

LONGDESC = """
============
Expand Down
2 changes: 1 addition & 1 deletion xmnlp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
sys.setdefaultencoding('utf8')

__author__ = 'sean lee'
__version__ = '0.2.2'
__version__ = '0.2.3'


def load_stopword(fpath):
Expand Down
2 changes: 2 additions & 0 deletions xmnlp/checker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
if sys.version_info[0] == 2:
reload(sys)
sys.setdefaultencoding('utf8')
elif sys.version_info[0] == 3:
unicode = str

# checker model
model = None
Expand Down

0 comments on commit 9cfa861

Please sign in to comment.