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

Function is_whitespace

official/nlp/data/squad_lib.py:175–178  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

173 input_data.extend(json.load(reader)["data"])
174
175 def is_whitespace(c):
176 if c == " " or c == "\t" or c == "\r" or c == "\n" or ord(c) == 0x202F:
177 return True
178 return False
179
180 examples = []
181 for entry in input_data:

Callers 1

read_squad_examplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected