Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Jaime Collado
/
textflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
de1b1540
authored
Jun 21, 2023
by
Estrella Vallecillo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Rename files
parent
6024989b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
3 deletions
textflow/EmojiPolarityAnalyzer.py
textflow/TextEmojiPolarityAnalyzer.py → textflow/EmoticonsPolarityAnalyzer.py
textflow/emoticons/emojiNegative.txt → textflow/emojis/emojiNegative.txt
textflow/emoticons/emojiPositive.txt → textflow/emojis/emojiPositive.txt
textflow/emoti-sp/emojiTextNegative.txt → textflow/emoti-sp/emoticonsNegative.txt
textflow/emoti-sp/emojiTextPositive.txt → textflow/emoti-sp/emoticonsPositive.txt
textflow/emoti-sp/negative.txt
textflow/emoti-sp/positive.txt
textflow/EmojiPolarityAnalyzer.py
View file @
de1b1540
...
...
@@ -11,7 +11,7 @@ class EmojiPolarityAnalyzer(Analyzer):
negativeEmoji: a list with the negative emojis
"""
def
__init__
(
self
,
positiveEmojiPath
=
"textflow
\
emo
ticons
\
emojiPositive.txt"
,
negativeEmojiPath
=
'textflow
\
emoticon
s
\
emojiNegative.txt'
):
def
__init__
(
self
,
positiveEmojiPath
=
"textflow
\
emo
jis
\
emojiPositive.txt"
,
negativeEmojiPath
=
'textflow
\
emoji
s
\
emojiNegative.txt'
):
"""
Create a text emoji polarity analyzer from an input object.
Args:
...
...
textflow/
TextEmoji
PolarityAnalyzer.py
→
textflow/
Emoticons
PolarityAnalyzer.py
View file @
de1b1540
...
...
@@ -2,7 +2,7 @@ from typing import Optional
from
textflow.Analyzer
import
Analyzer
import
re
class
TextEmoji
PolarityAnalyzer
(
Analyzer
):
class
Emoticons
PolarityAnalyzer
(
Analyzer
):
"""
A class that provides methods to analyze the polarity of the text of a sequence.
...
...
@@ -11,7 +11,7 @@ class TextEmojiPolarityAnalyzer(Analyzer):
negativeEmoji: a list with the negative text emojis
"""
def
__init__
(
self
,
positiveEmojiPath
=
"textflow
\
emoti-sp
\
emo
jiTextPositive.txt"
,
negativeEmojiPath
=
'textflow
\
emoti-sp
\
emojiText
Negative.txt'
):
def
__init__
(
self
,
positiveEmojiPath
=
"textflow
\
emoti-sp
\
emo
ticonsPositive.txt"
,
negativeEmojiPath
=
'textflow
\
emoti-sp
\
emoticons
Negative.txt'
):
"""
Create a text emoji polarity analyzer from an input object.
Args:
...
...
textflow/emo
ticon
s/emojiNegative.txt
→
textflow/emo
ji
s/emojiNegative.txt
View file @
de1b1540
File moved
textflow/emo
ticon
s/emojiPositive.txt
→
textflow/emo
ji
s/emojiPositive.txt
View file @
de1b1540
File moved
textflow/emoti-sp/emo
jiText
Negative.txt
→
textflow/emoti-sp/emo
ticons
Negative.txt
View file @
de1b1540
File moved
textflow/emoti-sp/emo
jiText
Positive.txt
→
textflow/emoti-sp/emo
ticons
Positive.txt
View file @
de1b1540
File moved
textflow/emoti-sp/negative.txt
0 → 100644
View file @
de1b1540
:(
=(
:-(
:'-(
:'(
>:[
:-c
:c
:-<
:<
:-[
:[
:{
:-||
:@
Q.Q
D:<
D:
D8
D;
D=
DX
v.v
D-':
:|
:-|
:/
:\
=/
=\
:L
=L
:S
>.<
>:\
>:/
:-###..
:##..
<:-|
(>_<)
(>_<)>
('_')
(/_;)
(T_T)
(;_;)
(ToT)
textflow/emoti-sp/positive.txt
0 → 100644
View file @
de1b1540
:)
=)
:D
:d
;)
:-)
:))
:)))
(;
:P
:p
:0)
:]
:3
:c)
:>
=]
8)
=)
:}
:^)
:-D
:-d
8-D
8-d
8D
x-D
xD
X-D
XD
xd
=-D
=D
=-3
=3
B^D
:'-)
:')
:*
:^*
( '}{' )
;-)
*-)
*)
;-]
;]
;D
;^)
:-,
#-)
^_^
>^_^<
<^!^>
(^.^)
(^_^.)
(^_^)
(^^)
(^J^)
(^-^)
(*^^)v
(^^)v
(^_^)v
( ^)o(^ )
(^O^)
(^o^)
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