CR - Autogenerated Review (Lesson)
Autogenerated Review
Introduction
Think of all the adjectives that you have seen in the reviews you have read in the previous lessons. Make a list of positive and negative adjectives that appear in a single review. Look back on the review from our previous activities or find new reviews to help generate adjectives. Remember, as you create your list, sentiment is subjective. It is not necessarily the case that words chosen as negative adjectives will have a negative sentiment value. The same is true for words that are chosen as positive adjectives.
Autogenerated Review
Please click below to begin the Autogenerated Review Activity.
Lab Check
Record the answers to the following questions on a sheet of paper. You will need the answers to complete the Lab Check Quiz.
- Describe the action of the indexOf and substring methods. Explain how these methods can be used to divide an existing string into two parts. Why is it necessary to add 1 to the position of the space when copying the remainder of the string?
- In the Review class all methods are static. Explain the difference between calling static methods as opposed to calling non-static methods.
- Autogenerated reviews may be created that are intentionally positive or negative. Explain how your method fakeReview could be modified to create a fake positive or fake negative review.
IMAGES CREATED BY GAVS