Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
6b843a43
Commit
6b843a43
authored
May 29, 2017
by
drevicko
Committed by
GitHub
May 29, 2017
Browse files
fixes typo in code
parent
65d6e475
Changes
1
Show whitespace changes
Inline
Side-by-side
senpy/plugins/conversion/centroids.py
View file @
6b843a43
...
...
@@ -49,7 +49,7 @@ class CentroidConversion(EmotionConversionPlugin):
def
_backwards_conversion
(
self
,
original
):
"""Find the closest category"""
dimensions
=
set
(
k
.
keys
()
for
i
in
centroids
.
values
())
dimensions
=
set
(
c
.
keys
()
for
c
in
centroids
.
values
())
neutralPoint
=
self
.
get
(
"origin"
,
None
)
neutralPoint
=
{
k
:
neutralPoint
[
k
]
if
k
in
neturalPoint
else
0
}
...
...
Write
Preview
Supports
Markdown
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