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
8a5a5f74
Commit
8a5a5f74
authored
Sep 06, 2020
by
Leo Gao
Browse files
Add evaluate method
parent
472a67d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
base.py
base.py
+4
-0
No files found.
base.py
View file @
8a5a5f74
...
...
@@ -38,4 +38,8 @@ class Dataset(abc.ABC):
@
abc
.
abstractmethod
def
doc_to_text
(
self
,
doc
,
include_target
=
True
):
pass
@
abc
.
abstractmethod
def
evaluate
(
self
,
docs
,
lm
):
pass
\ 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