Commit eebd947e authored by crazyer's avatar crazyer

repaire bug

parent d8d28f62
......@@ -96,7 +96,7 @@ class TextClassifical(object):
if each_proba[1] <= 0 and each_proba[2] >= each_proba[0]:
return SELECTED_CONTENT_TYPE.STAR_GOSSIP[0], words_proba
elif each_proba[1] <= 0 and each_proba[2] < each_proba[0]:
return SELECTED_CONTENT_TYPE[0], words_proba
return SELECTED_CONTENT_TYPE.CELEBRITY_GOSSIP[0], words_proba
elif each_proba[1] > 0.75:
return SELECTED_CONTENT_TYPE.BEAUTY_PROJECT[0], words_proba
elif each_proba[0] > each_proba[2]:
......
......@@ -96,7 +96,7 @@ class TextClassifical(object):
if each_proba[1] <= 0 and each_proba[2] >= each_proba[0]:
return SELECTED_CONTENT_TYPE.STAR_GOSSIP[0], words_proba
elif each_proba[1] <= 0 and each_proba[2] < each_proba[0]:
return SELECTED_CONTENT_TYPE[0], words_proba
return SELECTED_CONTENT_TYPE.CELEBRITY_GOSSIP[0], words_proba
elif each_proba[1] > 0.75:
return SELECTED_CONTENT_TYPE.BEAUTY_PROJECT[0], words_proba
elif each_proba[0] > each_proba[2]:
......
......@@ -278,6 +278,7 @@ V脸套餐
唇部综合
除皱套餐
玻尿酸注射套餐
玻尿酸注射
乳腺检查
全飞秒
半飞秒
......
......@@ -278,6 +278,7 @@ V脸套餐
唇部综合
除皱套餐
玻尿酸注射套餐
玻尿酸注射
乳腺检查
全飞秒
半飞秒
......
Metadata-Version: 1.1
Name: gm-text-miner
Version: 1.0.2
Version: 1.0.3
Summary: classifical base word dict
Home-page: UNKNOWN
Author: crazyer
......
This diff is collapsed.
......@@ -14,7 +14,7 @@ dev_requires = [
setuptools.setup(
name='gm-text-miner',
version="1.0.2",
version="1.0.3",
author="crazyer",
author_email="zhangguodong@igengmei.com",
description="classifical base word dict",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment