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

Method test_has_answer

language/orqa/ops/orqa_ops_test.py:52–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 self.assertAllEqual(concat_inputs.gold_ends.numpy(), [[6], [-1]])
51
52 def test_has_answer(self):
53 result = orqa_ops.has_answer(blocks=["abcdefg", "hijklmn"], answers=["hij"])
54 self.assertAllEqual(result.numpy(), [False, True])
55
56if __name__ == "__main__":
57 tf.test.main()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected