diff --git a/Cemotion-apple/README.md b/Cemotion-apple/README.md index 376f54b..9bd7456 100644 --- a/Cemotion-apple/README.md +++ b/Cemotion-apple/README.md @@ -22,7 +22,7 @@ conda install scikit-learn #安装scikit-learn ``` -之后输入以下命令安装cemotion +之后输入以下命令安装Cemotion ``` pip install --upgrade pip pip install cemotion-apple diff --git a/Cemotion-apple/cemotion/download.py b/Cemotion-apple/cemotion/download.py index 65b9e0b..bcf247b 100644 --- a/Cemotion-apple/cemotion/download.py +++ b/Cemotion-apple/cemotion/download.py @@ -22,8 +22,7 @@ def download_from_url(url, dst): file = Request(url,headers=headers) file_size = int(urlopen(file).info().get('Content-Length', -1)) except Exception as e: - print(e) - print("错误,访问url: %s 异常" % url) + print("Error downloading. Trying again.") raise 'file not exit' return False diff --git a/Cemotion-apple/setup.py b/Cemotion-apple/setup.py index bdba26f..cad85e7 100644 --- a/Cemotion-apple/setup.py +++ b/Cemotion-apple/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name="Cemotion-apple", - version="0.3.1", + version="0.3.2", author="Cyberbolt", author_email="735245473@qq.com", description="基于NLP的中文情感倾向分析库", diff --git a/Cemotion/README.md b/Cemotion/README.md index dece81a..78ecf53 100644 --- a/Cemotion/README.md +++ b/Cemotion/README.md @@ -29,7 +29,7 @@ python -m venv venv #创建虚拟环境 venv\Scripts\activate #激活虚拟环境 ``` -2.安装cemotion库,依次输入 +2.安装Cemotion库,依次输入 ``` pip install --upgrade pip diff --git a/Cemotion/cemotion/download.py b/Cemotion/cemotion/download.py index 65b9e0b..bcf247b 100644 --- a/Cemotion/cemotion/download.py +++ b/Cemotion/cemotion/download.py @@ -22,8 +22,7 @@ def download_from_url(url, dst): file = Request(url,headers=headers) file_size = int(urlopen(file).info().get('Content-Length', -1)) except Exception as e: - print(e) - print("错误,访问url: %s 异常" % url) + print("Error downloading. Trying again.") raise 'file not exit' return False diff --git a/Cemotion/setup.py b/Cemotion/setup.py index e65a161..b2754ab 100644 --- a/Cemotion/setup.py +++ b/Cemotion/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name="Cemotion", - version="0.3.1", + version="0.3.2", author="Cyberbolt", author_email="735245473@qq.com", description="基于NLP的中文情感倾向分析库", diff --git a/README.md b/README.md index fd5412c..b4c2c5f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ python -m venv venv #创建虚拟环境 venv\Scripts\activate #激活虚拟环境 ``` -2.安装cemotion库,依次输入 +2.安装Cemotion库,依次输入 ``` pip install --upgrade pip