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
YYL469
2024-07-03 18:20:21 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
4fae040c3eeedf0c023c9424931b5c4e3e105a2a
4fae040c
2 parents
fcc847e0
510f09af
Merge branch 'main' of github.com:666ghj/Weibo_PublicOpinion_AnalysisSystem
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
utils/getTableData.py
utils/getTableData.py
View file @
4fae040
...
...
@@ -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