refactor4 && add sentence score compute utility