Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba Maria Mármol
/
TextAnalysisSpacy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c64be71e
authored
Feb 15, 2022
by
Alba Maria Mármol
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update TextAnalysisSpacy.py
parent
e289393a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
TextAnalysisSpacy.py
TextAnalysisSpacy.py
View file @
c64be71e
...
@@ -308,8 +308,8 @@ class TextAnalysisSpacy():
...
@@ -308,8 +308,8 @@ class TextAnalysisSpacy():
return
self
.
df
return
self
.
df
def
emotions
(
self
):
def
emotions
(
self
):
classifier6
=
pipeline
(
"text-classification"
,
model
=
'
model1_path
'
,
return_all_scores
=
True
)
classifier6
=
pipeline
(
"text-classification"
,
model
=
'
bhadresh-savani/distilbert-base-uncased-emotion
'
,
return_all_scores
=
True
)
classifier27
=
pipeline
(
"text-classification"
,
model
=
'
model2_path
'
,
return_all_scores
=
True
)
classifier27
=
pipeline
(
"text-classification"
,
model
=
'
bhadresh-savani/bert-base-go-emotion
'
,
return_all_scores
=
True
)
i
=
0
i
=
0
for
text
in
tqdm
(
self
.
df
[
'text'
]):
for
text
in
tqdm
(
self
.
df
[
'text'
]):
...
...
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