Skip to content

Commit

Permalink
更换远程下载源
Browse files Browse the repository at this point in the history
  • Loading branch information
DTC@Cyberbolt authored and DTC@Cyberbolt committed Mar 2, 2021
1 parent 0744300 commit ce745ff
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
24 changes: 12 additions & 12 deletions Cemotion-apple/cemotion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ def __init__(self):
dictionary_path = current_path + '/models/requirements/big_Chinese_Words_Map.dict'
#检测所需文件是否存在,判断是否下载
#若主链接无法使用,使用备用链接
try:
check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWszUVJVdGhaQWZJNVROVTlSP2U9b2pJOEtF.dict',
dictionary_path)
except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/big_Chinese_Words_Map.dict',
dictionary_path)
# try:
# check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWszUVJVdGhaQWZJNVROVTlSP2U9b2pJOEtF.dict',
# dictionary_path)
# except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/big_Chinese_Words_Map.dict',
dictionary_path)
#若主链接无法使用,使用备用链接
try:
check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWttbEpoTDU0UFRhUmZSbzhNP2U9czhWcVE3.h5',
model_path)
except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/rnn_emotion_1.0.h5',
model_path)
# try:
# check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWttbEpoTDU0UFRhUmZSbzhNP2U9czhWcVE3.h5',
# model_path)
# except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/rnn_emotion_1.0.h5',
model_path)
#加载rnn模型
self.__rnn = tf.keras.models.load_model(model_path)
#加载数据集实例
Expand Down
2 changes: 1 addition & 1 deletion Cemotion-apple/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="Cemotion-apple",
version="0.3.2",
version="0.3.3",
author="Cyberbolt",
author_email="[email protected]",
description="基于NLP的中文情感倾向分析库",
Expand Down
24 changes: 12 additions & 12 deletions Cemotion/cemotion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ def __init__(self):
dictionary_path = current_path + '/models/requirements/big_Chinese_Words_Map.dict'
#检测所需文件是否存在,判断是否下载
#若主链接无法使用,使用备用链接
try:
check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWszUVJVdGhaQWZJNVROVTlSP2U9b2pJOEtF.dict',
dictionary_path)
except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/big_Chinese_Words_Map.dict',
dictionary_path)
# try:
# check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWszUVJVdGhaQWZJNVROVTlSP2U9b2pJOEtF.dict',
# dictionary_path)
# except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/big_Chinese_Words_Map.dict',
dictionary_path)
#若主链接无法使用,使用备用链接
try:
check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWszVndYZ2I3SmJQdDR6b0pqP2U9UjlzZmRR.h5',
model_path)
except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/rnn_emotion_x86_1.0.h5',
model_path)
# try:
# check_env('https://onedrive.gimhoy.com/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBaVdOR2ZlUEx6NWszVndYZ2I3SmJQdDR6b0pqP2U9UjlzZmRR.h5',
# model_path)
# except:
check_env('https://www.cyberlight.xyz/static/file/cemotion/rnn_emotion_x86_1.0.h5',
model_path)
#加载rnn模型
self.__rnn = tf.keras.models.load_model(model_path)
#加载数据集实例
Expand Down
2 changes: 1 addition & 1 deletion Cemotion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="Cemotion",
version="0.3.2",
version="0.3.3",
author="Cyberbolt",
author_email="[email protected]",
description="基于NLP的中文情感倾向分析库",
Expand Down

0 comments on commit ce745ff

Please sign in to comment.