Unverified Commit abe05c5d authored by Hailey Schoelkopf's avatar Hailey Schoelkopf Committed by GitHub
Browse files

remove reference to undef `self.delimiter`

parent a575d9e5
...@@ -31,11 +31,11 @@ class Sampler: ...@@ -31,11 +31,11 @@ class Sampler:
selected_docs = [x for x in fewshotex if x != doc][:num_fewshot] selected_docs = [x for x in fewshotex if x != doc][:num_fewshot]
labeled_examples = ( labeled_examples = (
self.delimiter.join( self.fewshot_delimiter.join(
[ [
# TODO: is separating doc_to_text and doc_to_target by one space always desired? # TODO: is separating doc_to_text and doc_to_target by one space always desired?
self.task.doc_to_text(doc) self.task.doc_to_text(doc)
+ self.fewshot_delimiter + self.target_delimiter
+ self.task.doc_to_target(doc) + self.task.doc_to_target(doc)
for doc in selected_docs for doc in selected_docs
] ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment