Awk file comparison

Source: Internet
Author: User
For more information about awk file comparison, see Linux general technology-Linux programming and kernel information. The TF_IDF_0.res format is 001 Q0 367321 0 18.98621904482158 TF_IDF
001 Q0 366866 14.576663853270356 TF_IDF
002 Q0 120447 0 11.284818180104196 TF_IDF
002 Q0 172248 11.241745855896292 TF_IDF

T. qrels format is 001 0 367321 1
001 0 366866 1
002 0 172248 1
002 0 352062 1
002 0 89349 1
Only compare the first (001) and third (367321) of each row to ignore the third and fourth parts.
How to use awk to output the same part and quantity

In addition, how can we obtain the accuracy and recall rate of terrier TF_IDF_0.res ??

Thank you ~!

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.