Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm-text-miner
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
gm-text-miner
Commits
eebd947e
Commit
eebd947e
authored
Jan 14, 2021
by
crazyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repaire bug
parent
d8d28f62
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
6 additions
and
4 deletions
+6
-4
base.py
algorithm/text_classifical/base.py
+1
-1
base.py
build/lib/algorithm/text_classifical/base.py
+1
-1
project.dic
build/lib/dicts/project.dic
+1
-0
project.dic
dicts/project.dic
+1
-0
gm_text_miner-1.0.2-py3.7.egg
dist/gm_text_miner-1.0.2-py3.7.egg
+0
-0
gm_text_miner-1.0.3-py3.7.egg
dist/gm_text_miner-1.0.3-py3.7.egg
+0
-0
PKG-INFO
gm_text_miner.egg-info/PKG-INFO
+1
-1
main.py
main.py
+0
-0
setup.py
setup.py
+1
-1
No files found.
algorithm/text_classifical/base.py
View file @
eebd947e
...
...
@@ -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
]:
...
...
build/lib/algorithm/text_classifical/base.py
View file @
eebd947e
...
...
@@ -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
]:
...
...
build/lib/dicts/project.dic
View file @
eebd947e
...
...
@@ -278,6 +278,7 @@ V脸套餐
唇部综合
除皱套餐
玻尿酸注射套餐
玻尿酸注射
乳腺检查
全飞秒
半飞秒
...
...
dicts/project.dic
View file @
eebd947e
...
...
@@ -278,6 +278,7 @@ V脸套餐
唇部综合
除皱套餐
玻尿酸注射套餐
玻尿酸注射
乳腺检查
全飞秒
半飞秒
...
...
dist/gm_text_miner-1.0.2-py3.7.egg
View file @
eebd947e
No preview for this file type
dist/gm_text_miner-1.0.3-py3.7.egg
0 → 100644
View file @
eebd947e
File added
gm_text_miner.egg-info/PKG-INFO
View file @
eebd947e
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
...
...
main.py
View file @
eebd947e
This diff is collapsed.
Click to expand it.
setup.py
View file @
eebd947e
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment