MCPcopy Create free account
hub / github.com/ACL2020SpellGCN/SpellGCN / convert_single_example

Function convert_single_example

run_spellgcn.py:695–836  ·  view source on GitHub ↗

Converts a single `InputExample` into a single `InputFeatures`.

(ex_index, example, label_list, output_mode, max_seq_length, max_predictions_per_seq,
                           tokenizer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 4

InputFeaturesClass · 0.85
convert_tokens_to_idsMethod · 0.80
convert_ids_to_tokensMethod · 0.80
tokenizeMethod · 0.45

Tested by

no test coverage detected