MCPcopy Create free account
hub / github.com/brightmart/text_classification / InputFeatures

Class InputFeatures

a00_Bert/run_classifier_predict_online.py:76–83  ·  view source on GitHub ↗

A single set of features of data.

Source from the content-addressed store, hash-verified

74
75
76class InputFeatures(object):
77 """A single set of features of data."""
78
79 def __init__(self, input_ids, input_mask, segment_ids, label_id):
80 self.input_ids = input_ids
81 self.input_mask = input_mask
82 self.segment_ids = segment_ids
83 self.label_id = label_id
84
85
86class DataProcessor(object):

Callers 1

convert_single_exampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected