MCPcopy Create free account
hub / github.com/THUDM/GLM / __init__

Method __init__

tasks/superglue/dataset.py:1118–1122  ·  view source on GitHub ↗
(self, args, language: str = None)

Source from the content-addressed store, hash-verified

1116 """Processor for the X-Stance data set."""
1117
1118 def __init__(self, args, language: str = None):
1119 super().__init__(args)
1120 if language is not None:
1121 assert language in ['de', 'fr']
1122 self.language = language
1123
1124 def get_train_examples(self, data_dir):
1125 return self._create_examples(os.path.join(data_dir, "train.jsonl"))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected