Skip to content

Commit

Permalink
update format of the post
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoliu-cl committed Sep 21, 2024
1 parent 6f09c9f commit 8059eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ params:
Quantitative Researcher
A husband, a father, and a Christ follower
Christ follower, husband, and father
imageUrl: "profile.jpg"
imageWidth: 160
imageHeight: 160
Expand Down
6 changes: 3 additions & 3 deletions content/posts/Goodreader_R/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The code below searches for books that include the term “parenting” in the t
You can also search author’s name:

search_goodreads(search_term = "J.K. Rowling", search_in = "author", num_books = 5, sort_by = "ratings")
The search_goodreads() function includes a sort_by that sorts the results either by ratings or published_year:
The `search_goodreads()` function includes a `sort_by` that sorts the results either by ratings or published_year:

search_goodreads(search_term = "J.K. Rowling", search_in = "author", num_books = 5, sort_by = "published_year")

Expand All @@ -73,7 +73,7 @@ To speed up the scraping process, we can turn on the parallel process: `use_para
The `analyze_sentiment()` function calculates the sentiment score of each review based on the lexicon chosen by the user. Available options for lexicon are afinn, bing, and nrc. Basic negation scope detection was implemented (e.g., not happy is labeled as negative emotion and is assigned with a negative score).

sentiment_results <- analyze_sentiment(parent_bookreviews, lexicon = "afinn")
The average_book_sentiment() function calculates the average sentiment score for each book.
The `average_book_sentiment()` function calculates the average sentiment score for each book.

ave_sentiment <- average_book_sentiment(sentiment_results)
summary(ave_sentiment)
Expand Down Expand Up @@ -132,7 +132,7 @@ Topic 3:

![](Topic3.png)

Other utility functions
## Other utility functions
The following table shows other utility functions to extract book-related information

| **Function** | **Output** | **Description** |
Expand Down

0 comments on commit 8059eaa

Please sign in to comment.