Skip to content

Instantly share code, notes, and snippets.

@joydeb28
Last active May 6, 2020 17:33
Show Gist options
  • Save joydeb28/324135f68df1380a21f37bfaf77a32e1 to your computer and use it in GitHub Desktop.
Save joydeb28/324135f68df1380a21f37bfaf77a32e1 to your computer and use it in GitHub Desktop.
class PreprocessingBertData():
def prepare_data_x(self,train_sentences):
x = bert_model_obj.get_input_array(train_sentences)
return x
def prepare_data_y(self,train_labels):
y = list()
for item in train_labels:
label = item
y.append(label)
y = np.array(y)
return y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment