add finer filtering rules for sentence detection
fix a bug