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
fda3d442
"vscode:/vscode.git/clone" did not exist on "e114d8748673a067324e0809479273d522a614e1"
Commit
fda3d442
authored
Dec 07, 2021
by
zihanl
Browse files
add comments
parent
23302cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tasks/knwl_dialo/preprocessing.py
tasks/knwl_dialo/preprocessing.py
+1
-2
No files found.
tasks/knwl_dialo/preprocessing.py
View file @
fda3d442
...
...
@@ -268,13 +268,12 @@ def get_database(test_datapath, train_datapath, data_type):
turns
=
splits
[
1
].
split
(
" [SEP] "
)[
-
3
:]
knowledge
=
splits
[
2
]
response
=
splits
[
3
]
# filtering data samples
if
knowledge
==
"no_passages_used"
:
# when no knowledge is used
continue
if
data_type
!=
"wow_seen"
and
(
"("
in
knowledge
or
")"
in
knowledge
):
# when bracket
s
exist
ing
in the knowledge
# when bracket exist
s
in the knowledge
continue
if
data_type
!=
"wow_seen"
and
topic
not
in
knowledge
:
# when topic does not exist in the knowledge
...
...
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