Skip to content

Commit

Permalink
1. 修复 Version 定义 #509
Browse files Browse the repository at this point in the history
2. 修复自定义分词 #491
  • Loading branch information
AlongWY committed May 17, 2021
1 parent 16bf13a commit cf11e50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ltp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*_
# Author: Yunlong Feng <[email protected]>

__version__ = '4.1.4'
__version__ = '4.1.4.post1'

from . import const
from . import nn, utils
Expand Down
2 changes: 1 addition & 1 deletion ltp/algorithms/maximum_forward_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def maximum_forward_matching(self, text: List[str], preffix: List[bool]):
candidate = (start, end)
break
if candidate:
start = candidate[1] + 1
start = candidate[1]
maximum_matching_pos.append(candidate)
else:
start += 1
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
install_requires=[
"torch>=1.2.0",
"transformers>=4.0.0, <5.0",
"pygtrie>=2.3.0, <2.5"
"pygtrie>=2.3.0, <2.5",
"packaging>=20.0"
],
classifiers=[
'Development Status :: 1 - Planning',
Expand Down

0 comments on commit cf11e50

Please sign in to comment.