You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the funciton in src/text_score.py with the following specification:
As a firm Silicon Valley fanatic, you have been
inspired by Jian Yang's hot dog/not hot dog classifier,
and decided to build your own classifier... but for text!
Your objective is to take a body of text, and two word inputs, and return a score count.
Every time the first string occurs in the text, you will
increment the score count, and every time the second string
occurs, you will decrement the score count. Return the final score.
Example:
input: ("I love to eat hot dogs for breakfast, hot dogs for lunch, and even for dinner!", "hot", "for")
output: -1
The text was updated successfully, but these errors were encountered:
Implement the funciton in
src/text_score.py
with the following specification:The text was updated successfully, but these errors were encountered: