Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
effector-gan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangys_biolab
effector-gan
Commits
a21cbff4
Commit
a21cbff4
authored
Jul 15, 2024
by
wangys_biolab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SSA_embedding.py
parent
901c9a57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SSA_embedding.py
embedding_model/src/SSA_embedding.py
+2
-2
No files found.
embedding_model/src/SSA_embedding.py
View file @
a21cbff4
...
@@ -124,7 +124,7 @@ def SSA_Embed(input_seq):
...
@@ -124,7 +124,7 @@ def SSA_Embed(input_seq):
final_only
=
True
final_only
=
True
for
key
,
value
in
input_seq
.
items
():
for
key
,
value
in
input_seq
.
items
():
PID_
.
append
(
key
)
PID_
.
append
(
key
)
sequence
=
value
.
encode
(
"utf-8"
)
sequence
=
str
(
value
)
.
encode
(
"utf-8"
)
z
=
embed_sequence
(
sequence
,
lm_embed
,
lstm_stack
,
proj
z
=
embed_sequence
(
sequence
,
lm_embed
,
lstm_stack
,
proj
,
include_lm
=
include_lm
,
final_only
=
final_only
,
include_lm
=
include_lm
,
final_only
=
final_only
,
pool
=
'avg'
,
use_cuda
=
True
)
,
pool
=
'avg'
,
use_cuda
=
True
)
...
@@ -156,7 +156,7 @@ def BiLSTM_Embed(input_seq):
...
@@ -156,7 +156,7 @@ def BiLSTM_Embed(input_seq):
for
key
,
value
in
input_seq
.
items
():
for
key
,
value
in
input_seq
.
items
():
PID
.
append
(
key
)
PID
.
append
(
key
)
sequence
=
value
.
encode
(
"utf-8"
)
sequence
=
str
(
value
)
.
encode
(
"utf-8"
)
z
=
embed_sequence
(
sequence
,
lm_embed
,
lstm_stack
,
proj
z
=
embed_sequence
(
sequence
,
lm_embed
,
lstm_stack
,
proj
,
final_only
=
False
,
include_lm
=
True
,
final_only
=
False
,
include_lm
=
True
,
pool
=
'avg'
,
use_cuda
=
True
)
,
pool
=
'avg'
,
use_cuda
=
True
)
...
...
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