(tokens, question)
| 116 | max_seq_length = args.sequence_length |
| 117 | |
| 118 | def question_features(tokens, question): |
| 119 | # Extract features from the paragraph and question |
| 120 | return dp.convert_example_to_features(tokens, question, tokenizer, max_seq_length, doc_stride, args.max_query_length) |
| 121 | |
| 122 | # Import necessary plugins for demoBERT |
| 123 | plugin_lib_name = "nvinfer_plugin.dll" if sys.platform == "win32" else "libnvinfer_plugin.so" |
no outgoing calls
no test coverage detected