{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/292","repository_url":"https://api.github.com/repos/Microsoft/CNTK","labels_url":"https://api.github.com/repos/Microsoft/CNTK/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/CNTK/issues/292/comments","events_url":"https://api.github.com/repos/Microsoft/CNTK/issues/292/events","html_url":"https://github.com/Microsoft/CNTK/issues/292","id":143749603,"number":292,"title":"CNTKTextReader edge case problems","user":{"login":"cmarschner","id":12276033,"avatar_url":"https://avatars.githubusercontent.com/u/12276033?v=3","gravatar_id":"","url":"https://api.github.com/users/cmarschner","html_url":"https://github.com/cmarschner","followers_url":"https://api.github.com/users/cmarschner/followers","following_url":"https://api.github.com/users/cmarschner/following{/other_user}","gists_url":"https://api.github.com/users/cmarschner/gists{/gist_id}","starred_url":"https://api.github.com/users/cmarschner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmarschner/subscriptions","organizations_url":"https://api.github.com/users/cmarschner/orgs","repos_url":"https://api.github.com/users/cmarschner/repos","events_url":"https://api.github.com/users/cmarschner/events{/privacy}","received_events_url":"https://api.github.com/users/cmarschner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/CNTK/labels/area%20reader","name":"area reader","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"raaaar","id":2082726,"avatar_url":"https://avatars.githubusercontent.com/u/2082726?v=3","gravatar_id":"","url":"https://api.github.com/users/raaaar","html_url":"https://github.com/raaaar","followers_url":"https://api.github.com/users/raaaar/followers","following_url":"https://api.github.com/users/raaaar/following{/other_user}","gists_url":"https://api.github.com/users/raaaar/gists{/gist_id}","starred_url":"https://api.github.com/users/raaaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raaaar/subscriptions","organizations_url":"https://api.github.com/users/raaaar/orgs","repos_url":"https://api.github.com/users/raaaar/repos","events_url":"https://api.github.com/users/raaaar/events{/privacy}","received_events_url":"https://api.github.com/users/raaaar/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-03-26T21:11:36Z","updated_at":"2016-03-29T08:55:31Z","closed_at":null,"body":"1. Last line after last newline is ignored.\r\n2. In case there was only one line without LF, it crashes with a division by 0. Same if file is empty.\r\n[testconfig.txt](https://github.com/Microsoft/CNTK/files/190630/testconfig.txt)\r\n[test.txt](https://github.com/Microsoft/CNTK/files/190631/test.txt)\r\n3. Empty sequence causes crash.\r\n[test-emptyseq.txt](https://github.com/Microsoft/CNTK/files/190634/test-emptyseq.txt)\r\n4. Space instead of tab between sequence identifier and feature causes crash\r\n[test-spc.txt](https://github.com/Microsoft/CNTK/files/190656/test-spc.txt)\r\n5. Adding same input more than once causes debug assert, not error.\r\n[test-multi.txt](https://github.com/Microsoft/CNTK/files/190658/test-multi.txt)\r\n\r\n\r\nExpected:\r\n- treat file as if it had a last LF (don't just ignore last line)\r\n- handle empty files gracefully (warning)\r\n- handle empty sequences gracefully (warning)\r\n- handle empty minibatches (resulting from empty sequences) gracefully (warning)\r\n- handle empty epochs (resulting from empty minibatches) gracefully (warning, nothing to do)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/CNTK/issues/comments/202784360","html_url":"https://github.com/Microsoft/CNTK/issues/292#issuecomment-202784360","issue_url":"https://api.github.com/repos/Microsoft/CNTK/issues/292","id":202784360,"user":{"login":"alexeyo26","id":15637572,"avatar_url":"https://avatars.githubusercontent.com/u/15637572?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyo26","html_url":"https://github.com/alexeyo26","followers_url":"https://api.github.com/users/alexeyo26/followers","following_url":"https://api.github.com/users/alexeyo26/following{/other_user}","gists_url":"https://api.github.com/users/alexeyo26/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyo26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyo26/subscriptions","organizations_url":"https://api.github.com/users/alexeyo26/orgs","repos_url":"https://api.github.com/users/alexeyo26/repos","events_url":"https://api.github.com/users/alexeyo26/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyo26/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T08:55:31Z","updated_at":"2016-03-29T08:55:31Z","body":"> I do see value in a compiler not choking about the first unmatched bracket\r\n\r\nBut this is exactly what ```maxErrors``` parameter is for."}}