{"action":"created","issue":{"url":"https://api.github.com/repos/languagetool-org/languagetool/issues/323","labels_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/323/comments","events_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/323/events","html_url":"https://github.com/languagetool-org/languagetool/issues/323","id":109255748,"number":323,"title":"Can't use fromy to trace the error back to some sentences","user":{"login":"motasay","id":965155,"avatar_url":"https://avatars.githubusercontent.com/u/965155?v=3","gravatar_id":"","url":"https://api.github.com/users/motasay","html_url":"https://github.com/motasay","followers_url":"https://api.github.com/users/motasay/followers","following_url":"https://api.github.com/users/motasay/following{/other_user}","gists_url":"https://api.github.com/users/motasay/gists{/gist_id}","starred_url":"https://api.github.com/users/motasay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motasay/subscriptions","organizations_url":"https://api.github.com/users/motasay/orgs","repos_url":"https://api.github.com/users/motasay/repos","events_url":"https://api.github.com/users/motasay/events{/privacy}","received_events_url":"https://api.github.com/users/motasay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-01T08:52:42Z","updated_at":"2015-10-01T19:55:48Z","closed_at":null,"body":"Hi,\r\n\r\nI have a file, where each line contains exactly one sentence (according to NLTK's sent_tokenize). I pass this file to the command line interface of languagetool. However, some issues have a value in `fromy` that's greater than the number of lines in the file. Why would this happen?\r\n\r\nThe DTD has this about `fromy`:\r\n> The line in which the error starts. Counting starts at 0.\r\n\r\nTo replicate:\r\n\r\n1. Download this file: https://www.dropbox.com/s/45rq5v5qh4myb7n/lt_test.txt.zip?dl=1\r\n2. In the terminal, call: `java -jar languagetool-commandline.jar --api --language en-GB lt_test.txt`\r\n3. The last error has: `fromy=\"1520\"`\r\n4. But the result of `wc -l lt_test.txt` is `1450 lt_test.txt` which basically is the number of lines in the file.\r\n\r\nI'd suspect that the tool does its own tokenisation, but I'd leave it to the experts instead of guessing.\r\n\r\nAny help would be very much appreciated."},"comment":{"url":"https://api.github.com/repos/languagetool-org/languagetool/issues/comments/144829943","html_url":"https://github.com/languagetool-org/languagetool/issues/323#issuecomment-144829943","issue_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/323","id":144829943,"user":{"login":"motasay","id":965155,"avatar_url":"https://avatars.githubusercontent.com/u/965155?v=3","gravatar_id":"","url":"https://api.github.com/users/motasay","html_url":"https://github.com/motasay","followers_url":"https://api.github.com/users/motasay/followers","following_url":"https://api.github.com/users/motasay/following{/other_user}","gists_url":"https://api.github.com/users/motasay/gists{/gist_id}","starred_url":"https://api.github.com/users/motasay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motasay/subscriptions","organizations_url":"https://api.github.com/users/motasay/orgs","repos_url":"https://api.github.com/users/motasay/repos","events_url":"https://api.github.com/users/motasay/events{/privacy}","received_events_url":"https://api.github.com/users/motasay/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T19:55:48Z","updated_at":"2015-10-01T19:55:48Z","body":"Alright I see. I appreciate your help! I'll give it another go tomorrow."}}