MCPcopy Create free account
hub / github.com/google-research/language / __init__

Method __init__

language/labs/drkit/run_dualencoder_lsf.py:381–409  ·  view source on GitHub ↗
(self,
               qas_id,
               question_text,
               entity_text,
               doc_tokens,
               indices_to_keep=None,
               orig_answer_text=None,
               start_position=None,
               end_position=None,
               start_relation=None,
               end_relation=None,
               orig_relation_text=None,
               is_impossible=False,
               has_entity=False,
               has_relation=False)

Source from the content-addressed store, hash-verified

379 """
380
381 def __init__(self,
382 qas_id,
383 question_text,
384 entity_text,
385 doc_tokens,
386 indices_to_keep=None,
387 orig_answer_text=None,
388 start_position=None,
389 end_position=None,
390 start_relation=None,
391 end_relation=None,
392 orig_relation_text=None,
393 is_impossible=False,
394 has_entity=False,
395 has_relation=False):
396 self.qas_id = qas_id
397 self.question_text = question_text
398 self.entity_text = entity_text
399 self.doc_tokens = doc_tokens
400 self.indices_to_keep = indices_to_keep if indices_to_keep else []
401 self.orig_answer_text = orig_answer_text
402 self.start_position = start_position
403 self.end_position = end_position
404 self.start_relation = start_relation
405 self.end_relation = end_relation
406 self.orig_relation_text = orig_relation_text
407 self.is_impossible = is_impossible
408 self.has_entity = has_entity
409 self.has_relation = has_relation
410
411 def __str__(self):
412 return self.__repr__()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected