Skip to content

Commit

Permalink
bugfix for remove rules
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyaofei committed Nov 30, 2021
1 parent 7760370 commit 0473dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nlpir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import functools
from .exception import NLPIRException

__version__ = "0.9.14b3"
__version__ = "0.9.14b4"
PACKAGE_DIR = os.path.abspath(os.path.dirname(__file__))
logger = logging.getLogger("nlpir")

Expand Down
3 changes: 2 additions & 1 deletion nlpir/eye_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@ def delete_rules(rule: int):
for file in os.listdir(kgb_path):
result = __kgb_rule_file_re__.search(file)
if result is not None:
os.remove(os.path.join(kgb_path, file))
if int(result.group(1)) == rule:
os.remove(os.path.join(kgb_path, file))

0 comments on commit 0473dd5

Please sign in to comment.