Skip to content

Commit

Permalink
bugfix for doc_extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyaofei committed Nov 2, 2021
1 parent 6ee816e commit 2046c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.11"
__version__ = "0.9.12"
PACKAGE_DIR = os.path.abspath(os.path.dirname(__file__))
logger = logging.getLogger("nlpir")

Expand Down
4 changes: 2 additions & 2 deletions nlpir/doc_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def get_result(
"word": "卢梭",
"pos": "n",
"weight": 1.5,
"frq": 100
"freq": 100
}
]
}
Expand All @@ -146,7 +146,7 @@ def get_result(
"word": result_map.get(0, None),
"pos": result_map.get(1, None),
"weight": float(result_map.get(2, None)) if result_map.get(2, None) is not None else None,
"frq": int(result_map.get(3, None)) if result_map.get(3, None) is not None else None
"freq": int(result_map.get(3, None)) if result_map.get(3, None) is not None else None
})
result_dict[self.__retrieve_type_reverse_map[retrieve_type]] = result_list
return result_dict
Expand Down

0 comments on commit 2046c69

Please sign in to comment.