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
gaoqiong
lm-evaluation-harness
Commits
e9e5305d
Commit
e9e5305d
authored
Apr 27, 2022
by
Shashi456
Browse files
Turning on data flags
parent
f42f168c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lm_eval/tasks/mlsum.py
lm_eval/tasks/mlsum.py
+7
-7
No files found.
lm_eval/tasks/mlsum.py
View file @
e9e5305d
...
@@ -28,13 +28,13 @@ class MLSUMEs(PromptSourceTask):
...
@@ -28,13 +28,13 @@ class MLSUMEs(PromptSourceTask):
DATASET_NAME
=
"es"
DATASET_NAME
=
"es"
def
has_training_docs
(
self
):
def
has_training_docs
(
self
):
return
Fals
e
return
Tru
e
def
has_validation_docs
(
self
):
def
has_validation_docs
(
self
):
return
Fals
e
return
Tru
e
def
has_test_docs
(
self
):
def
has_test_docs
(
self
):
return
Fals
e
return
Tru
e
def
training_docs
(
self
):
def
training_docs
(
self
):
if
self
.
has_training_docs
():
if
self
.
has_training_docs
():
...
@@ -64,13 +64,13 @@ class MLSUMDe(PromptSourceTask):
...
@@ -64,13 +64,13 @@ class MLSUMDe(PromptSourceTask):
DATASET_NAME
=
"de"
DATASET_NAME
=
"de"
def
has_training_docs
(
self
):
def
has_training_docs
(
self
):
return
Fals
e
return
Tru
e
def
has_validation_docs
(
self
):
def
has_validation_docs
(
self
):
return
Fals
e
return
Tru
e
def
has_test_docs
(
self
):
def
has_test_docs
(
self
):
return
Fals
e
return
Tru
e
def
training_docs
(
self
):
def
training_docs
(
self
):
if
self
.
has_training_docs
():
if
self
.
has_training_docs
():
...
@@ -90,4 +90,4 @@ class MLSUMDe(PromptSourceTask):
...
@@ -90,4 +90,4 @@ class MLSUMDe(PromptSourceTask):
return
"."
return
"."
def
max_generation_length
(
self
):
def
max_generation_length
(
self
):
return
120
return
120
\ No newline at end of file
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