Skip to content

Commit

Permalink
update lib from NLPIR repo #43 , bugfix for keyExtract for None retur…
Browse files Browse the repository at this point in the history
…n , bump version to 0.9.6
  • Loading branch information
yangyaofei committed Jun 24, 2021
1 parent 629b4f1 commit 6ecc082
Show file tree
Hide file tree
Showing 9 changed files with 6 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.5"
__version__ = "0.9.6"
PACKAGE_DIR = os.path.abspath(os.path.dirname(__file__))
logger = logging.getLogger("nlpir")

Expand Down
6 changes: 5 additions & 1 deletion nlpir/key_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ def get_key_words(text: str, max_key: int = 50) -> typing.List[dict]:
"""
result = __instance__.get_keywords(line=text, max_key_limit=max_key, format_opt=native.OUTPUT_FORMAT_JSON)
try:
return json.loads(result)
result = json.loads(result)
if result is not None:
return result
else:
return []
except json.decoder.JSONDecodeError:
return []
Binary file modified nlpir/lib/KeyExtract64.dll
Binary file not shown.
Binary file modified nlpir/lib/NLPIR64.dll
Binary file not shown.
Binary file modified nlpir/lib/NewWordFinder64.dll
Binary file not shown.
Binary file modified nlpir/lib/libDocExtractor64.so
Binary file not shown.
Binary file modified nlpir/lib/libLJSummary64.so
Binary file not shown.
Binary file modified nlpir/lib/libNLPIR64.so
Binary file not shown.
Binary file modified nlpir/lib/libNewWordFinder64.so
Binary file not shown.

1 comment on commit 6ecc082

@yangyaofei
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finish issues #34

Please sign in to comment.