MCPcopy Index your code
hub / github.com/thunlp/OpenPrompt / get_test_examples

Method get_test_examples

openprompt/data_utils/data_processor.py:110–116  ·  view source on GitHub ↗

get test examples from the test file under :obj:`data_dir` call ``get_examples(data_dir, "test")``, see :py:meth:`~openprompt.data_utils.data_processor.DataProcessor.get_examples`

(self, data_dir: Optional[str] = None)

Source from the content-addressed store, hash-verified

108 return self.get_examples(data_dir, "dev")
109
110 def get_test_examples(self, data_dir: Optional[str] = None) -> List[InputExample]:
111 """
112 get test examples from the test file under :obj:`data_dir`
113
114 call ``get_examples(data_dir, "test")``, see :py:meth:`~openprompt.data_utils.data_processor.DataProcessor.get_examples`
115 """
116 return self.get_examples(data_dir, "test")
117
118 def get_unlabeled_examples(self, data_dir: Optional[str] = None) -> List[InputExample]:
119 """

Callers 15

3.1_LMBFF.pyFile · 0.45
1.3_calibration.pyFile · 0.45
test_AgnewsProcessorFunction · 0.45
test_DBpediaProcessorFunction · 0.45
test_ImdbProcessorFunction · 0.45
test_SST2ProcessorFunction · 0.45
test_FewNERDProcessorFunction · 0.45
test_TACREDProcessorFunction · 0.45

Calls 1

get_examplesMethod · 0.95

Tested by 11

test_AgnewsProcessorFunction · 0.36
test_DBpediaProcessorFunction · 0.36
test_ImdbProcessorFunction · 0.36
test_SST2ProcessorFunction · 0.36
test_FewNERDProcessorFunction · 0.36
test_TACREDProcessorFunction · 0.36
test_TACREVProcessorFunction · 0.36
test_ReTACREDProcessorFunction · 0.36
test_SemEvalProcessorFunction · 0.36
test_WebNLGProcessorFunction · 0.36
test_SNLIProcessorFunction · 0.36