Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

TypeError: compute_predictions_logits() missing 2 required positional arguments: 'null_score_diff_threshold' and 'tokenizer'

$
0
0

I want to train albert v2 model the squad dataset, but when I run it. I am faced with this error.

TypeError: compute_predictions_logits() missing 2 required positional arguments: 'null_score_diff_threshold' and 'tokenizer'

When they exist in the code:

predictions = compute_predictions_logits(    examples,    features,    all_results,    n_best_size,    max_answer_length,    do_lower_case,    output_prediction_file,    output_nbest_file,    output_null_log_odds_file,    null_score_diff_threshold,    tokenizer,)

Does anyone know a solution?


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>