MCPcopy Create free account
hub / github.com/tensorflow/models / write_to_json_files

Function write_to_json_files

official/nlp/data/squad_lib.py:788–790  ·  view source on GitHub ↗
(json_records, json_file)

Source from the content-addressed store, hash-verified

786
787
788def write_to_json_files(json_records, json_file):
789 with tf.io.gfile.GFile(json_file, "w") as writer:
790 writer.write(json.dumps(json_records, indent=4) + "\n")
791
792
793def get_final_text(pred_text, orig_text, do_lower_case, verbose=False):

Callers 1

write_predictionsFunction · 0.70

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected