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

Function process_class

official/nlp/data/squad_lib.py:352–357  ·  view source on GitHub ↗
(seg_class)

Source from the content-addressed store, hash-verified

350 paragraph_mask.append(0)
351
352 def process_class(seg_class):
353 class_index = len(segment_ids)
354 tokens.append("[CLS]")
355 segment_ids.append(seg_class)
356 paragraph_mask.append(1)
357 return class_index
358
359 if xlnet_format:
360 seg_p, seg_q, seg_class, seg_pad = 0, 1, 2, 3

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected