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

Method __str__

language/diffqg/annotation.py:85–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.is_edited = gold_anno.is_edited
84
85 def __str__(self):
86 return json.dumps(dataclasses.asdict(self))
87
88 def key_annotation(self) -> str:
89 return f"{self.base_text}::{self.target_text}::{self.answer_span}"

Callers

nothing calls this directly

Calls 1

asdictMethod · 0.80

Tested by

no test coverage detected