in code/source/bert_preprocessing.py [0:0]
def convert_text_to_examples(texts, labels):
"""
Create InputExamples
:param texts: (list of lists of str) list of sentences where each sentence is a list of words
:param labels: (list of lists of str) list of lists of words/subwords labels
:return: list of InputExample objects
"""
InputExamples = []
for text, label in zip(texts, labels):
InputExamples.append(
InputExample(guid=None, text_a=text, text_b=None, label=label)
)
return InputExamples