Modify sentence relevance calculation