Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
戒酒的李白
2024-07-03 17:42:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
261dfa46b1cef9642ed345783c4320ef5c39d89c
261dfa46
1 parent
f98d111c
【情感分析模块】正面负面中性的判断标准更改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
utils/getTableData.py
utils/getTableData.py
View file @
261dfa4
...
...
@@ -8,9 +8,9 @@ def getTableDataList(flag):
for
article
in
articeList
:
item
=
list
(
article
)
value
=
''
if
SnowNLP
(
item
[
5
])
.
sentiments
>
0.
5
:
if
SnowNLP
(
item
[
5
])
.
sentiments
>
0.
6
:
value
=
'正面'
elif
SnowNLP
(
item
[
5
])
.
sentiments
<
0.
5
:
elif
SnowNLP
(
item
[
5
])
.
sentiments
<
0.
4
:
value
=
'负面'
else
:
value
=
'中性'
...
...
Please
register
or
login
to post a comment