Fork自 PaddlePaddle / PaddleRec
#!/bin/bash echo "................run................." python -m paddlerec.run -m ./config.yaml >result1.txt grep -i "query_doc_sim" ./result1.txt >./result2.txt sed '$d' result2.txt >result.txt rm -f result1.txt rm -f result2.txt
python transform.py sort -t $'\t' -k1,1 -k 2nr,2 pair.txt >result.txt rm -f pair.txt python ../../../tools/cal_pos_neg.py result.txt