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
ddc044eb
Commit
ddc044eb
authored
Mar 27, 2021
by
Jonathan Tow
Browse files
Remove import of the non-existent `NLP_TASK` module
parent
9a9c8e3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lm_eval/tasks/wikitext.py
lm_eval/tasks/wikitext.py
+3
-3
No files found.
lm_eval/tasks/wikitext.py
View file @
ddc044eb
from
.
common
import
NLP_TASK
from
.
common
import
HFTask
class
WikiText103
(
NLP_TASK
):
class
WikiText103
(
HFTask
):
NLP_PATH
=
"wikitext"
NLP_PATH
=
"wikitext"
NLP_NAME
=
"wikitext-103-raw-v1"
NLP_NAME
=
"wikitext-103-raw-v1"
...
@@ -63,7 +63,7 @@ class WikiText103(NLP_TASK):
...
@@ -63,7 +63,7 @@ class WikiText103(NLP_TASK):
raise
NotImplementedError
(
'Evaluation not implemented'
)
raise
NotImplementedError
(
'Evaluation not implemented'
)
class
WikiText2
(
NLP_TASK
):
class
WikiText2
(
HFTask
):
NLP_PATH
=
"wikitext"
NLP_PATH
=
"wikitext"
NLP_NAME
=
"wikitext-2-raw-v1"
NLP_NAME
=
"wikitext-2-raw-v1"
...
...
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