Formula for Calculating the P, R, and f values of Natural Language Processing

Source: Internet
Author: User

Http://blog.csdn.net/wen718/article/details/5960666

When evaluating the Chinese word segmentation performance, three commonly used evaluation indicators are used: accuracy (P), recall rate (R), and comprehensive indicator F (f ). Accuracy indicates the correct percentage of all words to be split. Recall rate refers to the ratio of words that are correctly segmented in all words (including words that are segmented and should not be ignored. Accuracy describes the correct percentage of words in the system segmentation. The recall rate indicates the number of words correctly divided by the system. The calculation formula is as follows:

P = Number of words to be accurately split/number of all words to be split

R = Number of words to be accurately split/number of words to be split

 

In actual evaluation of a system, P and R should be considered at the same time, but two values must be compared at the same time, it is difficult to make it clear at a glance. Therefore, two values are often used for evaluation. The F value of the comprehensive indicator is one of them. The calculation formula is as follows:

F = (Beta square + 1) Pr/(Beta square * P + r)

Among them, β decides whether to focus on P or R, usually set to 1, 2 or 1/2. The value of β is 1, that is, the value is equally important to both.

 

From word-based word location tagging Chinese Word Segmentation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.