Fixed training of sentence detection