Add sentence scoring function

Add sentence scoring function