Imported changes from https://github.com/jmp84/svmtoolCpp, commit 5f3b668ef3fc3a6bff57521d72118ba39fea5113 ("fixed some bugs. now output is identical to the output by the perl version")
Imported changes from https://github.com/jmp84/svmtoolCpp, commit f81d6ccc5c021341b9a4e111747b988b28f3086f ("now the input sentences can be separated by empty lines.")