The cloud natural language API can be implemented to perform sentiment analysis function in order to search fiction books from a set of books. The steps to perform the same are as follows:
Generate fiction (positive) or non-fiction books (negative) results
Calculate the overall sentiment by adding positive and negative results, is prediction
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.