{"action":"created","comment":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments/230310959","pull_request_review_id":171020775,"id":230310959,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDMxMDk1OQ==","diff_hunk":"@@ -130,6 +130,7 @@ sub format_sys {\n }\n \n open(UTT2SPK,$ARGV[0]) or die \"Could not open the utt2spk file $ARGV[0]\";\n+binmode(UTT2SPK, \":utf8\");","path":"egs/wsj/s5/utils/scoring/wer_per_spk_details.pl","position":null,"original_position":4,"commit_id":"3514d7f7906b0d4bcb04eea20eb284273a10e90d","original_commit_id":"c0c2b9d24244322c0007a87a533147dbd7ab915d","user":{"login":"agurianov","id":13452698,"node_id":"MDQ6VXNlcjEzNDUyNjk4","avatar_url":"https://avatars1.githubusercontent.com/u/13452698?v=4","gravatar_id":"","url":"https://api.github.com/users/agurianov","html_url":"https://github.com/agurianov","followers_url":"https://api.github.com/users/agurianov/followers","following_url":"https://api.github.com/users/agurianov/following{/other_user}","gists_url":"https://api.github.com/users/agurianov/gists{/gist_id}","starred_url":"https://api.github.com/users/agurianov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agurianov/subscriptions","organizations_url":"https://api.github.com/users/agurianov/orgs","repos_url":"https://api.github.com/users/agurianov/repos","events_url":"https://api.github.com/users/agurianov/events{/privacy}","received_events_url":"https://api.github.com/users/agurianov/received_events","type":"User","site_admin":false},"body":"I've updated the commit, used proposed, made some cosmetic changes.\r\nnow the output is like this (it works for me)\r\n\r\n# cat exp/tri3/decode_sp/scoring_kaldi/penalty_1.0/17.txt | align-text --special-symbol='***' ark:exp/tri3/decode_sp/scoring_kaldi/test_filt.txt ark:- ark,t:- | utils/scoring/wer_per_utt_details.pl --special-symbol '***' | tee exp/tri3/decode_sp/scoring_kaldi/wer_details/per_utt | utils/scoring/wer_per_spk_details.pl data/test/utt2spk > exp/tri3/decode_sp/scoring_kaldi/wer_details/per_spk\r\n# Started at Fri Nov  2 11:46:44 +03 2018\r\n#\r\nalign-text '--special-symbol=***' ark:exp/tri3/decode_sp/scoring_kaldi/test_filt.txt ark:- ark,t:-\r\nLOG (align-text[5.5.88~1417-8e30f]:main():align-text.cc:129) Done 829 sentences, failed for 0\r\nutils/scoring/wer_per_spk_details.pl: Note: handling as utf-8 text\r\nutils/scoring/wer_per_utt_details.pl: Note: handling as utf-8 text\r\nutils/scoring/wer_per_spk_details.pl: Note: handling as utf-8 text\r\n# Accounting: time=0 threads=1\r\n# Ended (code 0) at Fri Nov  2 11:46:44 +03 2018, elapsed time 0 seconds\r\n","created_at":"2018-11-02T09:20:03Z","updated_at":"2018-11-02T09:20:03Z","html_url":"https://github.com/kaldi-asr/kaldi/pull/2811#discussion_r230310959","pull_request_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments/230310959"},"html":{"href":"https://github.com/kaldi-asr/kaldi/pull/2811#discussion_r230310959"},"pull_request":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811"}},"in_reply_to_id":230102984},"pull_request":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811","id":227574258,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NTc0MjU4","html_url":"https://github.com/kaldi-asr/kaldi/pull/2811","diff_url":"https://github.com/kaldi-asr/kaldi/pull/2811.diff","patch_url":"https://github.com/kaldi-asr/kaldi/pull/2811.patch","issue_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/2811","number":2811,"state":"open","locked":false,"title":"Update wer_per_spk_details.pl","user":{"login":"agurianov","id":13452698,"node_id":"MDQ6VXNlcjEzNDUyNjk4","avatar_url":"https://avatars1.githubusercontent.com/u/13452698?v=4","gravatar_id":"","url":"https://api.github.com/users/agurianov","html_url":"https://github.com/agurianov","followers_url":"https://api.github.com/users/agurianov/followers","following_url":"https://api.github.com/users/agurianov/following{/other_user}","gists_url":"https://api.github.com/users/agurianov/gists{/gist_id}","starred_url":"https://api.github.com/users/agurianov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agurianov/subscriptions","organizations_url":"https://api.github.com/users/agurianov/orgs","repos_url":"https://api.github.com/users/agurianov/repos","events_url":"https://api.github.com/users/agurianov/events{/privacy}","received_events_url":"https://api.github.com/users/agurianov/received_events","type":"User","site_admin":false},"body":"Fix for filenames with UTF8 symbols.\r\nCauses warnings like \"Use of uninitialized value $SPK in hash element at utils/scoring/wer_per_spk_details.pl line 163\"","created_at":"2018-11-01T10:27:52Z","updated_at":"2018-11-02T09:20:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"625f1e56f639896351f04f74b60772cee375c3e6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811/commits","review_comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811/comments","review_comment_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/2811/comments","statuses_url":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/3514d7f7906b0d4bcb04eea20eb284273a10e90d","head":{"label":"agurianov:patch-1","ref":"patch-1","sha":"3514d7f7906b0d4bcb04eea20eb284273a10e90d","user":{"login":"agurianov","id":13452698,"node_id":"MDQ6VXNlcjEzNDUyNjk4","avatar_url":"https://avatars1.githubusercontent.com/u/13452698?v=4","gravatar_id":"","url":"https://api.github.com/users/agurianov","html_url":"https://github.com/agurianov","followers_url":"https://api.github.com/users/agurianov/followers","following_url":"https://api.github.com/users/agurianov/following{/other_user}","gists_url":"https://api.github.com/users/agurianov/gists{/gist_id}","starred_url":"https://api.github.com/users/agurianov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agurianov/subscriptions","organizations_url":"https://api.github.com/users/agurianov/orgs","repos_url":"https://api.github.com/users/agurianov/repos","events_url":"https://api.github.com/users/agurianov/events{/privacy}","received_events_url":"https://api.github.com/users/agurianov/received_events","type":"User","site_admin":false},"repo":{"id":155697841,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU2OTc4NDE=","name":"kaldi","full_name":"agurianov/kaldi","private":false,"owner":{"login":"agurianov","id":13452698,"node_id":"MDQ6VXNlcjEzNDUyNjk4","avatar_url":"https://avatars1.githubusercontent.com/u/13452698?v=4","gravatar_id":"","url":"https://api.github.com/users/agurianov","html_url":"https://github.com/agurianov","followers_url":"https://api.github.com/users/agurianov/followers","following_url":"https://api.github.com/users/agurianov/following{/other_user}","gists_url":"https://api.github.com/users/agurianov/gists{/gist_id}","starred_url":"https://api.github.com/users/agurianov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agurianov/subscriptions","organizations_url":"https://api.github.com/users/agurianov/orgs","repos_url":"https://api.github.com/users/agurianov/repos","events_url":"https://api.github.com/users/agurianov/events{/privacy}","received_events_url":"https://api.github.com/users/agurianov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/agurianov/kaldi","description":"This is now the official location of the Kaldi project.","fork":true,"url":"https://api.github.com/repos/agurianov/kaldi","forks_url":"https://api.github.com/repos/agurianov/kaldi/forks","keys_url":"https://api.github.com/repos/agurianov/kaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agurianov/kaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agurianov/kaldi/teams","hooks_url":"https://api.github.com/repos/agurianov/kaldi/hooks","issue_events_url":"https://api.github.com/repos/agurianov/kaldi/issues/events{/number}","events_url":"https://api.github.com/repos/agurianov/kaldi/events","assignees_url":"https://api.github.com/repos/agurianov/kaldi/assignees{/user}","branches_url":"https://api.github.com/repos/agurianov/kaldi/branches{/branch}","tags_url":"https://api.github.com/repos/agurianov/kaldi/tags","blobs_url":"https://api.github.com/repos/agurianov/kaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agurianov/kaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agurianov/kaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/agurianov/kaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agurianov/kaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/agurianov/kaldi/languages","stargazers_url":"https://api.github.com/repos/agurianov/kaldi/stargazers","contributors_url":"https://api.github.com/repos/agurianov/kaldi/contributors","subscribers_url":"https://api.github.com/repos/agurianov/kaldi/subscribers","subscription_url":"https://api.github.com/repos/agurianov/kaldi/subscription","commits_url":"https://api.github.com/repos/agurianov/kaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/agurianov/kaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/agurianov/kaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/agurianov/kaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/agurianov/kaldi/contents/{+path}","compare_url":"https://api.github.com/repos/agurianov/kaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agurianov/kaldi/merges","archive_url":"https://api.github.com/repos/agurianov/kaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agurianov/kaldi/downloads","issues_url":"https://api.github.com/repos/agurianov/kaldi/issues{/number}","pulls_url":"https://api.github.com/repos/agurianov/kaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/agurianov/kaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/agurianov/kaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agurianov/kaldi/labels{/name}","releases_url":"https://api.github.com/repos/agurianov/kaldi/releases{/id}","deployments_url":"https://api.github.com/repos/agurianov/kaldi/deployments","created_at":"2018-11-01T10:21:39Z","updated_at":"2018-11-01T10:21:59Z","pushed_at":"2018-11-02T09:17:40Z","git_url":"git://github.com/agurianov/kaldi.git","ssh_url":"git@github.com:agurianov/kaldi.git","clone_url":"https://github.com/agurianov/kaldi.git","svn_url":"https://github.com/agurianov/kaldi","homepage":"http://kaldi-asr.org","size":112642,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kaldi-asr:master","ref":"master","sha":"dafeb84f433593e2a26dc793e6a65595af47e1d9","user":{"login":"kaldi-asr","id":11650082,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjUwMDgy","avatar_url":"https://avatars2.githubusercontent.com/u/11650082?v=4","gravatar_id":"","url":"https://api.github.com/users/kaldi-asr","html_url":"https://github.com/kaldi-asr","followers_url":"https://api.github.com/users/kaldi-asr/followers","following_url":"https://api.github.com/users/kaldi-asr/following{/other_user}","gists_url":"https://api.github.com/users/kaldi-asr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldi-asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldi-asr/subscriptions","organizations_url":"https://api.github.com/users/kaldi-asr/orgs","repos_url":"https://api.github.com/users/kaldi-asr/repos","events_url":"https://api.github.com/users/kaldi-asr/events{/privacy}","received_events_url":"https://api.github.com/users/kaldi-asr/received_events","type":"Organization","site_admin":false},"repo":{"id":34275045,"node_id":"MDEwOlJlcG9zaXRvcnkzNDI3NTA0NQ==","name":"kaldi","full_name":"kaldi-asr/kaldi","private":false,"owner":{"login":"kaldi-asr","id":11650082,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjUwMDgy","avatar_url":"https://avatars2.githubusercontent.com/u/11650082?v=4","gravatar_id":"","url":"https://api.github.com/users/kaldi-asr","html_url":"https://github.com/kaldi-asr","followers_url":"https://api.github.com/users/kaldi-asr/followers","following_url":"https://api.github.com/users/kaldi-asr/following{/other_user}","gists_url":"https://api.github.com/users/kaldi-asr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldi-asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldi-asr/subscriptions","organizations_url":"https://api.github.com/users/kaldi-asr/orgs","repos_url":"https://api.github.com/users/kaldi-asr/repos","events_url":"https://api.github.com/users/kaldi-asr/events{/privacy}","received_events_url":"https://api.github.com/users/kaldi-asr/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kaldi-asr/kaldi","description":"This is now the official location of the Kaldi project.","fork":false,"url":"https://api.github.com/repos/kaldi-asr/kaldi","forks_url":"https://api.github.com/repos/kaldi-asr/kaldi/forks","keys_url":"https://api.github.com/repos/kaldi-asr/kaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaldi-asr/kaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaldi-asr/kaldi/teams","hooks_url":"https://api.github.com/repos/kaldi-asr/kaldi/hooks","issue_events_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/events{/number}","events_url":"https://api.github.com/repos/kaldi-asr/kaldi/events","assignees_url":"https://api.github.com/repos/kaldi-asr/kaldi/assignees{/user}","branches_url":"https://api.github.com/repos/kaldi-asr/kaldi/branches{/branch}","tags_url":"https://api.github.com/repos/kaldi-asr/kaldi/tags","blobs_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/kaldi-asr/kaldi/languages","stargazers_url":"https://api.github.com/repos/kaldi-asr/kaldi/stargazers","contributors_url":"https://api.github.com/repos/kaldi-asr/kaldi/contributors","subscribers_url":"https://api.github.com/repos/kaldi-asr/kaldi/subscribers","subscription_url":"https://api.github.com/repos/kaldi-asr/kaldi/subscription","commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaldi-asr/kaldi/contents/{+path}","compare_url":"https://api.github.com/repos/kaldi-asr/kaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaldi-asr/kaldi/merges","archive_url":"https://api.github.com/repos/kaldi-asr/kaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaldi-asr/kaldi/downloads","issues_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues{/number}","pulls_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/kaldi-asr/kaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/kaldi-asr/kaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaldi-asr/kaldi/labels{/name}","releases_url":"https://api.github.com/repos/kaldi-asr/kaldi/releases{/id}","deployments_url":"https://api.github.com/repos/kaldi-asr/kaldi/deployments","created_at":"2015-04-20T17:23:16Z","updated_at":"2018-11-02T06:25:18Z","pushed_at":"2018-11-02T09:17:41Z","git_url":"git://github.com/kaldi-asr/kaldi.git","ssh_url":"git@github.com:kaldi-asr/kaldi.git","clone_url":"https://github.com/kaldi-asr/kaldi.git","svn_url":"https://github.com/kaldi-asr/kaldi","homepage":"http://kaldi-asr.org","size":112641,"stargazers_count":4677,"watchers_count":4677,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2379,"mirror_url":null,"archived":false,"open_issues_count":170,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2379,"open_issues":170,"watchers":4677,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811"},"html":{"href":"https://github.com/kaldi-asr/kaldi/pull/2811"},"issue":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/issues/2811"},"comments":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/issues/2811/comments"},"review_comments":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811/comments"},"review_comment":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/2811/commits"},"statuses":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/3514d7f7906b0d4bcb04eea20eb284273a10e90d"}},"author_association":"NONE"}}
{"actor":{"display_login":"agurianov"}}