Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
bdb14434
Commit
bdb14434
authored
Nov 27, 2021
by
zihanl
Browse files
update prompt
parent
a79820a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tasks/knwl_dialo/prompt.py
tasks/knwl_dialo/prompt.py
+1
-1
No files found.
tasks/knwl_dialo/prompt.py
View file @
bdb14434
...
...
@@ -104,7 +104,7 @@ def generate_samples_by_prompting_input_from_file(model):
if
args
.
prompt_type
==
"knowledge"
:
turns
=
splits
[
1
].
split
(
" [SEP] "
)
context
=
turns
[
-
1
]
if
" -> "
in
raw_text
:
if
" -> "
in
raw_text
and
" => "
not
in
raw_text
:
raw_text
+=
"( "
+
context
+
" ) "
+
topic
+
" ->"
else
:
raw_text
+=
"( "
+
context
+
" ) "
+
topic
+
" =>"
...
...
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