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

Function process_query

official/nlp/data/squad_lib.py:328–335  ·  view source on GitHub ↗
(seg_q)

Source from the content-addressed store, hash-verified

326
327 # pylint: disable=cell-var-from-loop
328 def process_query(seg_q):
329 for token in query_tokens:
330 tokens.append(token)
331 segment_ids.append(seg_q)
332 paragraph_mask.append(0)
333 tokens.append("[SEP]")
334 segment_ids.append(seg_q)
335 paragraph_mask.append(0)
336
337 def process_paragraph(seg_p):
338 for i in range(doc_span.length):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected