\n\n\n\n\n\n<\/section>\n\n\nCOMET<\/p>\n
A Neural Framework for MT Evaluation<\/p>\n
\u9879\u76ee\u5730\u5740:https:\/\/gitcode.com\/gh_mirrors\/com\/COMET<\/p>\n<\/section>\n<\/section>\n\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n\u9879\u76ee\u4ecb\u7ecd<\/strong><\/span><\/p>\nUnbabel’s COMET \u662f\u4e00\u4e2a\u5148\u8fdb\u7684\u673a\u5668\u7ffb\u8bd1\uff08Machine Translation, MT\uff09\u8d28\u91cf\u8bc4\u4f30\u6846\u67b6\uff0c\u5b83\u5229\u7528\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u6765\u9884\u6d4b\u7ffb\u8bd1\u7684\u4e3b\u89c2\u8d28\u91cf\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u4f9d\u8d56\u7b80\u5355\u7684\u7f16\u8f91\u8ddd\u79bb\u6216\u8bcd\u5bf9\u9f50\u7b49\u4f20\u7edf\u65b9\u6cd5\u3002COMET\u8bbe\u8ba1\u7528\u4e8e\u652f\u6301\u591a\u79cd\u8bc4\u4ef7\u4efb\u52a1\uff0c\u5982\u81ea\u52a8\u8bc4\u4ef7\u7ffb\u8bd1\u7684\u6574\u4f53\u8d28\u91cf\u3001\u7279\u5b9a\u65b9\u9762\u7684\u8d28\u91cf\u548c\u8de8\u8bed\u8a00\u80fd\u529b\u3002\u5b83\u901a\u8fc7\u5728\u5927\u89c4\u6a21\u6807\u6ce8\u6570\u636e\u4e0a\u8bad\u7ec3\uff0c\u63d0\u4f9b\u4e86\u6bd4\u4f20\u7edf\u7684\u57fa\u4e8e\u89c4\u5219\u6216\u7edf\u8ba1\u7684\u8d28\u91cf\u8bc4\u4f30\u6307\u6807\u66f4\u7cbe\u7ec6\u548c\u51c6\u786e\u7684\u53cd\u9988\u3002<\/span><\/p>\n\n
\u9879\u76ee\u5feb\u901f\u542f\u52a8<\/strong><\/span><\/p>\n\n
\u5b89\u88c5<\/strong><\/span><\/p>\n\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u5df2\u5b89\u88c5\u4e86Python 3.7\u6216\u66f4\u9ad8\u7248\u672c\uff0c\u7136\u540e\u4f7f\u7528pip\u5b89\u88c5COMET\uff1a<\/span><\/p>\n\n
pip install comet-core<\/span><\/p>\n\n
\u5bf9\u4e8e\u6700\u65b0\u7279\u6027\u6216\u8005\u60f3\u8981\u4ece\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\uff0c\u53ef\u4ee5\u4eceGitHub\u514b\u9686\u4ed3\u5e93\u5e76\u5b89\u88c5\uff1a<\/span><\/p>\n\n\n1 | git clone https:\/\/github.com\/Unbabel\/COMET.git<\/span><\/p>\n2 | cd COMET<\/span><\/p>\n3 | pip install -r requirements.txt<\/span><\/p>\n4 | python setup.py install<\/span><\/p>\n<\/section>\n\n
\u4f7f\u7528\u793a\u4f8b<\/strong><\/span><\/p>\n\n
\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528COMET\u5bf9\u4e00\u5bf9\u7ffb\u8bd1\u5b9e\u4f8b\u8fdb\u884c\u8bc4\u4f30\u7684\u57fa\u672c\u6b65\u9aa4\uff1a<\/span><\/p>\n\n
\u00a0 1 | from comet_ml import Model<\/span><\/p>\n\u00a0 2 |\u00a0<\/span><\/p>\n\u00a0 3 | model = Model(<\/span><\/p>\n\u00a0 4 |\u00a0 \u00a0 \u00a0model_name=”wmt20-comet-da”,<\/span><\/p>\n\u00a0 5 |\u00a0 \u00a0 \u00a0output_path=”your\/output\/path”<\/span><\/p>\n\u00a0 6 | )<\/span><\/p>\n\u00a0 7 |\u00a0\u00a0<\/span><\/p>\n\u00a0 8 | translation = “\u8fd9\u662f\u4e00\u4e2a\u7ffb\u8bd1\u7684\u4f8b\u5b50\u3002”<\/span><\/p>\n\u00a0 9 | reference = “This is a translation example.”<\/span><\/p>\n10 |\u00a0<\/span><\/p>\n11 | result = model.predict([({<\/span><\/p>\n12 |\u00a0 \u00a0 \u00a0‘src’: reference,<\/span><\/p>\n13 |\u00a0 \u00a0 \u00a0‘mt’: translation<\/span><\/p>\n14 | }], aggregate=False)<\/span><\/p>\n15 |\u00a0\u00a0<\/span><\/p>\n16 |print(result)<\/span><\/p>\n\n
\u8fd9\u5c06\u8fd4\u56de\u4e00\u4e2a\u8d28\u91cf\u5206\u6570\uff0c\u8868\u793a\u7ed9\u5b9a\u7ffb\u8bd1\u76f8\u5bf9\u4e8e\u53c2\u8003\u6587\u672c\u7684\u8d28\u91cf\u3002<\/span><\/p>\n\n
\u5e94\u7528\u6848\u4f8b\u548c\u6700\u4f73\u5b9e\u8df5<\/strong><\/span><\/p>\n\n
COMET\u5e7f\u6cdb\u5e94\u7528\u4e8e\u673a\u5668\u7ffb\u8bd1\u7cfb\u7edf\u7684\u5f00\u53d1\u548c\u4f18\u5316\u4e2d\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u5bf9\u6bd4\u81ea\u5df1\u7684\u7ffb\u8bd1\u7cfb\u7edf\u8f93\u51fa\u4e0e\u4e13\u4e1a\u4eba\u5de5\u7ffb\u8bd1\u7684\u7ed3\u679c\uff0c\u5f97\u5230\u91cf\u5316\u53cd\u9988\uff0c\u8fdb\u800c\u8c03\u6574\u6a21\u578b\u53c2\u6570\u4ee5\u63d0\u9ad8\u7ffb\u8bd1\u8d28\u91cf\u3002\u6b64\u5916\uff0cCOMET\u4e5f\u80fd\u5e2e\u52a9\u7814\u7a76\u4eba\u5458\u8fdb\u884c\u7cfb\u7edf\u6bd4\u8f83\uff0c\u5728\u673a\u5668\u7ffb\u8bd1\u6bd4\u8d5b\uff08\u5982WMT\uff09\u4e2d\u4f5c\u4e3a\u5b98\u65b9\u8bc4\u4ef7\u5de5\u5177\u4e4b\u4e00\uff0c\u5176\u6700\u4f73\u5b9e\u8df5\u5305\u62ec\uff1a<\/span><\/p>\n\n\n\n- \n
\u6570\u636e\u9884\u5904\u7406<\/strong><\/span>\uff1a\u786e\u4fdd\u8f93\u5165\u7ed9COMET\u7684\u6e90\u6587\u672c\u548c\u673a\u5668\u7ffb\u8bd1\u6587\u672c\u5df2\u7ecf\u8fc7\u9002\u5f53\u7684\u6e05\u7406\u548c\u6807\u51c6\u5316\u3002<\/span><\/p>\n<\/li>\n- \n
\u9009\u62e9\u5408\u9002\u6a21\u578b<\/strong><\/span>\uff1a\u6839\u636e\u7279\u5b9a\u7684\u8bed\u8a00\u5bf9\u548c\u5e94\u7528\u573a\u666f\u9009\u7528\u6700\u76f8\u5173\u7684COMET\u6a21\u578b\u7248\u672c\u3002<\/span><\/p>\n<\/li>\n- \n
\u6301\u7eed\u76d1\u63a7<\/strong><\/span>\uff1a\u5728\u673a\u5668\u7ffb\u8bd1\u670d\u52a1\u8fd0\u884c\u671f\u95f4\uff0c\u5b9a\u671f\u4f7f\u7528COMET\u8bc4\u4f30\u4ea7\u51fa\uff0c\u53ca\u65f6\u53d1\u73b0\u8d28\u91cf\u4e0b\u6ed1\u3002<\/span><\/p>\n\n<\/li>\n<\/ul>\n<\/section>\n
\u5178\u578b\u751f\u6001\u9879\u76ee<\/strong><\/span><\/p>\n\n
COMET\u7684\u751f\u6001\u7cfb\u7edf\u5305\u542b\u4e86\u4e0e\u4e4b\u534f\u540c\u5de5\u4f5c\u7684\u5404\u79cd\u5de5\u5177\u548c\u670d\u52a1\uff0c\u4f8b\u5982\uff1a<\/span><\/p>\n\n\n\n- \n
MT\u8bc4\u4f30\u5de5\u4f5c\u6d41\u96c6\u6210<\/strong><\/span>\uff1aCOMET\u53ef\u4ee5\u65e0\u7f1d\u96c6\u6210\u5230\u73b0\u6709\u7684\u673a\u5668\u7ffb\u8bd1\u9879\u76ee\u5de5\u4f5c\u6d41\u7a0b\u4e2d\uff0c\u6bd4\u5982\u901a\u8fc7API\u8c03\u7528\u81ea\u52a8\u5316\u8bc4\u4f30\u8fc7\u7a0b\u3002<\/span><\/p>\n<\/li>\n- \n
\u7814\u7a76\u4e0e\u7ade\u8d5b<\/strong><\/span>\uff1a\u5b83\u662f\u591a\u9879\u673a\u5668\u7ffb\u8bd1\u57fa\u51c6\u6d4b\u8bd5\uff08\u5982WMT\uff09\u7684\u6838\u5fc3\u7ec4\u4ef6\uff0c\u4fc3\u8fdb\u4e86MT\u9886\u57df\u5185\u6a21\u578b\u6027\u80fd\u7684\u6bd4\u8f83\u548c\u7814\u7a76\u53d1\u5c55\u3002<\/span><\/p>\n<\/li>\n- \n
\u5b9a\u5236\u5316\u8bc4\u4f30\u6a21\u578b<\/strong><\/span>\uff1a\u9ad8\u7ea7\u7528\u6237\u53ef\u4ee5\u57fa\u4e8eCOMET\u6846\u67b6\uff0c\u8bad\u7ec3\u7279\u5b9a\u4e8e\u67d0\u79cd\u884c\u4e1a\u9886\u57df\u6216\u98ce\u683c\u7684\u7ffb\u8bd1\u8d28\u91cf\u8bc4\u4f30\u6a21\u578b\u3002<\/span><\/p>\n<\/li>\n- \n
\u901a\u8fc7\u8fd9\u6837\u7684\u6574\u5408\u548c\u5e94\u7528\uff0cCOMET\u4e0d\u4ec5\u63d0\u5347\u4e86\u7ffb\u8bd1\u8d28\u91cf\u8bc4\u4f30\u7684\u6548\u7387\uff0c\u4e5f\u63a8\u52a8\u4e86\u673a\u5668\u7ffb\u8bd1\u6280\u672f\u7684\u524d\u6cbf\u63a2\u7d22\u548c\u5b9e\u9645\u5e94\u7528\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<\/section>\n\n\n\n<\/section>\n\n\nCOMET<\/span><\/p>\nA Neural Framework for MT Evaluation<\/span><\/p>\n\u9879\u76ee\u5730\u5740:https:\/\/gitcode.com\/gh_mirrors\/com\/COMET<\/span><\/p>\n<\/section>\n<\/section>\n\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/span><\/p>\n\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faa CC 4.0 BY-SA \u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u548c\u672c\u58f0\u660e\u3002\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/p>\n\u539f\u6587\u94fe\u63a5\uff1a<\/span><\/p>\nhttps:\/\/blog.csdn.net\/gitblog_00417\/article\/details\/141376918<\/span><\/p>\n<\/section>\n<\/section>\n\n\n\u7279\u522b\u8bf4\u660e\uff1a\u672c\u6587\u4ec5\u7528\u4e8e\u5b66\u672f\u4ea4\u6d41\uff0c\u5982\u6709\u4fb5\u6743\u8bf7\u540e\u53f0\u8054\u7cfb\u5c0f\u7f16\u5220\u9664\u3002<\/span><\/span><\/section>\n<\/section>\n<\/blockquote>\n\u8f6c\u8f7d\u6765\u6e90\uff1a\u5c48\u6e38\u4f1a-CSDN\u535a\u5ba2<\/span><\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"\u6280\u672f\u79d1\u666e | Unbabel COMET\uff1a\u591a\u8bed\u8a00\u7ffb\u8bd1\u8d28\u91cf\u8bc4\u4f30\u6a21\u578b \u7ffb\u8bd1\u6280\u672f\u6559\u80b2\u4e0e\u7814\u7a76 2024\u5e74 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"class_list":["post-32678","post","type-post","status-publish","format-standard","hentry","category-82"],"_links":{"self":[{"href":"https:\/\/linguaresources.com\/index.php?rest_route=\/wp\/v2\/posts\/32678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linguaresources.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linguaresources.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linguaresources.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linguaresources.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32678"}],"version-history":[{"count":1,"href":"https:\/\/linguaresources.com\/index.php?rest_route=\/wp\/v2\/posts\/32678\/revisions"}],"predecessor-version":[{"id":32679,"href":"https:\/\/linguaresources.com\/index.php?rest_route=\/wp\/v2\/posts\/32678\/revisions\/32679"}],"wp:attachment":[{"href":"https:\/\/linguaresources.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linguaresources.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linguaresources.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}