3e5759c2c7fbffcb6ee4f2c6af7b86b0dfcb8758,pycorrector/utils/eval.py,,eval_corpus,#Any#Any#Any#,218

Before Change


          "recall_rate:{},recall_right_count:{},recall_total_count:{}".format(right_rate, right_count, total_count,
                                                                              recall_rate, recall_right_count,
                                                                              recall_total_count))
    save_json(res, output_eval_path)


def eval_corpus_by_bert(input_eval_path=eval_data_path, output_eval_path=output_eval_error_path, verbose=True):
    from pycorrector.bert.bert_corrector import BertCorrector

After Change


                                                                                                 recall_right_count,
                                                                                                 recall_total_count,
                                                                                                 spend_time))
    if output_eval_path:
        save_json(res, output_eval_path)


def eval_corpus_by_bert(input_eval_path=eval_data_path, output_eval_path="", verbose=True):
    from pycorrector.bert.bert_corrector import BertCorrector
    model = BertCorrector()
    res = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: shibing624/pycorrector
Commit Name: 3e5759c2c7fbffcb6ee4f2c6af7b86b0dfcb8758
Time: 2020-12-14
Author: xuming624@qq.com
File Name: pycorrector/utils/eval.py
Class Name:
Method Name: eval_corpus


Project Name: uber/ludwig
Commit Name: 0dd7113adcc2216e9a6dddb404b9dbd3c9b53d65
Time: 2019-04-12
Author: piero@uber.com
File Name: ludwig/train.py
Class Name:
Method Name: full_train


Project Name: shibing624/pycorrector
Commit Name: 3e5759c2c7fbffcb6ee4f2c6af7b86b0dfcb8758
Time: 2020-12-14
Author: xuming624@qq.com
File Name: pycorrector/utils/eval.py
Class Name:
Method Name: eval_corpus_by_bert