The confusion matrix over langs as a Markdown table: one row perexpected language, one column per predicted language in langs, thena column for other languages and one for no prediction.
A Markdown summary of the report: overall accuracy, a table withprecision, recall and F1 per language (in order of first appearance),and the confusions most frequent mistakes.
The n most frequent mistakes as (expected, predicted, count), mostfrequent first; ties are ordered by expected language, then byprediction, in Lang::all() order with None last.
Runs predict on every sample and tallies the results. predictreturns None when it declines to identify a text; such a sample countsas wrong for accuracy and recall, but as a prediction of no language forprecision.