diff --git a/nlpir/__init__.py b/nlpir/__init__.py index cc8e7cd..f7ad196 100644 --- a/nlpir/__init__.py +++ b/nlpir/__init__.py @@ -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") diff --git a/nlpir/eye_checker.py b/nlpir/eye_checker.py index 829d6fc..588c14a 100644 --- a/nlpir/eye_checker.py +++ b/nlpir/eye_checker.py @@ -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))