"...resnet50_tensorflow.git" did not exist on "ac0829fa2b94336a79af962c9cffbf283a81b6c3"
Commit 60414f31 authored by LysandreJik's avatar LysandreJik
Browse files

GLUE updated with new methods

parent baa74326
...@@ -405,7 +405,14 @@ def convert_examples_to_features(examples, label_list, max_seq_length, ...@@ -405,7 +405,14 @@ def convert_examples_to_features(examples, label_list, max_seq_length,
if ex_index % 10000 == 0: if ex_index % 10000 == 0:
logger.info("Writing example %d of %d" % (ex_index, len(examples))) logger.info("Writing example %d of %d" % (ex_index, len(examples)))
input_ids, segment_ids = tokenizer.encode(example.text_a, example.text_b, add_special_tokens=True, output_mask=True) inputs = tokenizer.encode_plus(
example.text_a,
example.text_b,
add_special_tokens=True,
output_mask=True,
max_length=max_seq_length
)
input_ids, segment_ids = inputs["sequence"], inputs["mask"]
# The mask has 1 for real tokens and 0 for padding tokens. Only real # The mask has 1 for real tokens and 0 for padding tokens. Only real
# tokens are attended to. # tokens are attended to.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment